摘要: 转 http://www.jianshu.com/p/2e4f7553659c 使用Xcode自带的静态分析工具 Product->Analyze(快捷键command+shift+B)可以找出代码潜在错误,如内存泄露,未使用函数和变量等 所谓静态内存分析, 是指在程序没运行的时候, 通过工具对代码 阅读全文
posted @ 2017-02-23 17:59 喜狼狼 阅读(723) 评论(0) 推荐(0)
摘要: NSURL *url = [NSURL URLWithString:@"Prefs:root=WIFI"]; Class LSApplicationWorkspace = NSClassFromString(@"LSApplicationWorkspace"); [[LSApplicationWor 阅读全文
posted @ 2017-02-09 10:23 喜狼狼 阅读(1613) 评论(0) 推荐(0)
摘要: UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;CGRect converControlTagRect = [self convertRect:self.controlTagView.frame toView:key 阅读全文
posted @ 2017-02-06 14:48 喜狼狼 阅读(341) 评论(0) 推荐(0)
摘要: 1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state —state NEW -m tcp -p tcp —dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state —state NEW 阅读全文
posted @ 2017-02-06 14:39 喜狼狼 阅读(267) 评论(0) 推荐(0)
摘要: brew install ffmpeg 阅读全文
posted @ 2016-07-28 23:46 喜狼狼 阅读(272) 评论(0) 推荐(0)
摘要: 参考网址: http://openresty.org/cn/installation.html 1.安装前的准备 Mac OS X (Darwin) 用户 使用brew工具安装pcre、openssl库: brew install pcre openssl 2.下载 OpenResty的源码包l, 阅读全文
posted @ 2016-07-19 22:49 喜狼狼 阅读(2340) 评论(0) 推荐(0)
摘要: 1.安装Lua编译器 2.安装Sublime Text2 1.下载http://sublime-text-2.cn.uptodown.com后打开; { "cmd": ["/usr/local/bin/lua", "$file"], "file_regex": "^(...*?):([0-9]*): 阅读全文
posted @ 2016-07-07 23:42 喜狼狼 阅读(186) 评论(0) 推荐(0)
摘要: 参考:http://blog.csdn.net/youtk21ai/article/details/50750300 http://www.cnblogs.com/brycezhang/p/4117180.html http://www.cocoachina.com/ios/20150228/112 阅读全文
posted @ 2016-06-17 18:03 喜狼狼 阅读(943) 评论(0) 推荐(0)
摘要: 转载:http://www.jianshu.com/p/2d1c06f2dfa4 #define MAX_STARWORDS_LENGTH 30 - (void)textViewDidChange:(UITextView *)textView{ // NSString * nsTextContent 阅读全文
posted @ 2016-05-26 11:48 喜狼狼 阅读(3522) 评论(0) 推荐(0)
摘要: NSString * introString = @"圣芭芭拉,圣莫妮卡海滩,圣地亚哥老城,科罗拉多岛"; NSArray * introArray = [introString componentsSeparatedByString:@","]; UILabel * label = [[UILab 阅读全文
posted @ 2016-05-18 10:16 喜狼狼 阅读(267) 评论(0) 推荐(0)