摘要: 1.如果需要恢复允许“任何来源”的选项,即关闭 Gatekeeper,请打开终端 2.然后使用 spctl 命令: sudo spctl --master-disable 阅读全文
posted @ 2016-11-21 17:17 与格律上 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 今天遇到设置: self.navigationController.navigationBarHidden= YES; 点击返回上一个UIViewController的时候这个时候这个navigationController也隐藏了 解决办法: self.navigationController.d 阅读全文
posted @ 2016-11-02 16:48 与格律上 阅读(403) 评论(0) 推荐(0) 编辑
摘要: ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod 解决办法: sudo gem install -n /usr/local/bin cocoapods 阅读全文
posted @ 2016-11-02 16:44 与格律上 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 当你使用命令行创建一个项目 react-native init 项目名称 后出现以下错误 Installing react-native package from npm... /bin/sh: npm: command not found `npm install --save --save-ex 阅读全文
posted @ 2016-09-27 11:00 与格律上 阅读(4540) 评论(0) 推荐(0) 编辑
摘要: clang: error: linker command failed with exit code 1 (use -v to see invocation) 解决办法 : 重新导入下框架 阅读全文
posted @ 2016-09-09 19:42 与格律上 阅读(3387) 评论(0) 推荐(0) 编辑
摘要: 解决 Autoresizing 和AutoLayout 冲突 设置 self.autoresizingMask = UIViewAutoresizingNone; 阅读全文
posted @ 2016-08-06 16:23 与格律上 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 第一步:添加两个占位View 第二步:添加子控制器 第三步:添加按钮 阅读全文
posted @ 2016-08-01 14:55 与格律上 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 第一种封装: 第二种 block: 阅读全文
posted @ 2016-07-31 21:27 与格律上 阅读(2035) 评论(0) 推荐(0) 编辑
摘要: -(void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath - (void)collectionView:(UICollectionView 阅读全文
posted @ 2016-07-31 20:35 与格律上 阅读(2590) 评论(0) 推荐(0) 编辑
摘要: 使用环境: 一个UIView 添加xib View 时需要注意使用 frame and bounds 代码: frame 和 bounds 对比 样式对比 其实说白了就是 frame: 该view在父view坐标系统中的位置和大小。(参照点是,父亲的坐标系统) bounds:该view在本地坐标系统 阅读全文
posted @ 2016-07-29 12:13 与格律上 阅读(133) 评论(0) 推荐(0) 编辑