摘要: 该出错是指:有些头文件没有导入到 TARGETS 中的Build Phases - Compile Sources 中 阅读全文
posted @ 2016-08-23 17:02 一人前行 阅读(123) 评论(0) 推荐(0) 编辑
摘要: button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; 阅读全文
posted @ 2016-08-05 15:56 一人前行 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 错误的原因: *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<UICompatibilityInputVie 阅读全文
posted @ 2016-07-29 14:38 一人前行 阅读(1483) 评论(0) 推荐(0) 编辑
摘要: 警告提示:This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will ca 阅读全文
posted @ 2016-07-28 18:25 一人前行 阅读(153) 评论(0) 推荐(0) 编辑
摘要: if (_existedFriends) { BOOL cont = [_existedFriends containsObject:item]; //用这一句判断 if (cont) { // 如果在_existedFriends中,不可点击 [YZTools toastMake:@"已在... 阅读全文
posted @ 2016-07-26 10:53 一人前行 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 第一步:创建工具类-BDFileManagerTool (1).h的代码 (2).m的代码 第二步:运用 阅读全文
posted @ 2016-07-22 19:51 一人前行 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 这里面包括下载和打开文档的操作:需要先导入《AFNetworking》的框架 第一步:创建一个显示文档的view:ReadViewController (1).h的代码如下: (2).m的代码如下: 第二步:创建一个下载和打开文档的工具类:YZFileDownloadAndReadTool (1)Y 阅读全文
posted @ 2016-07-22 19:32 一人前行 阅读(2157) 评论(0) 推荐(0) 编辑
摘要: //判断是否安装微信客户端 if (![WXApi isWXAppInstalled]) {//没有安装微信客户端,隐藏微信登陆的按钮 self.buttongWidth.constant = UI_SCREEN_WIDTH * 0.5; }else { self.buttongWidth.cons 阅读全文
posted @ 2016-07-19 13:50 一人前行 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 1.导入:Reachability 文件 2.导入:Reachability的头文件 3.复制代码: + (BOOL) isConnectionAvailable{ BOOL isExistenceNetwork = YES; Reachability *reach = [Reachability 阅读全文
posted @ 2016-07-19 13:49 一人前行 阅读(177) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_5971cdd00102vqgy.html ---方法 http://www.jianshu.com/p/a7a4a14c8030 --说明其他的id 阅读全文
posted @ 2016-07-19 13:48 一人前行 阅读(143) 评论(0) 推荐(0) 编辑