摘要: 参考文章: https://github.com/Homebrew/homebrew-nginx 1.安装Homebrew,执行命令 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ins 阅读全文
posted @ 2016-03-01 15:31 嗷大喵 阅读(8472) 评论(5) 推荐(0) 编辑
摘要: 当我们归档自定义对象的时候,可以重写自定义Model的的encodeWithCoder和initWithCoder 开始的大概是这样的,当属性非常多的时候 这种方式就会觉得不还好 好像重复在做一样的事情 其实这块我们可以交给runtime来做 用runtime来实现上面的功能 阅读全文
posted @ 2016-04-06 11:31 嗷大喵 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 安装homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 卸载homebrew ruby -e "$(curl -fsSL https://raw.gith 阅读全文
posted @ 2016-03-25 22:13 嗷大喵 阅读(457) 评论(0) 推荐(0) 编辑
摘要: reason: '*** -[AVAssetWriterInputPixelBufferAdaptor initWithAssetWriterInput:sourcePixelBufferAttributes:] Cannot create a new pixel buffer adaptor wi 阅读全文
posted @ 2016-03-04 15:40 嗷大喵 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 参考博客 http://blog.chinaunix.net/uid-11344913-id-4665455.html 在osx系统下通过ffmpeg查看设备 ffmpeg -f avfoundation -list_devices true -i "" 显示结果如下: SingerdeMacBoo 阅读全文
posted @ 2016-03-02 00:33 嗷大喵 阅读(14409) 评论(2) 推荐(1) 编辑
摘要: 准备工作: 1.安装nginx和rtmp模块 2.安装ffmepg(用来推流) 以上准备工作参见这篇博客:http://www.cnblogs.com/damiao/p/5231221.html 1.配置nginx 用记事本工具打开 /usr/local/etc/nginx/nginx.conf 找 阅读全文
posted @ 2016-03-01 15:59 嗷大喵 阅读(2220) 评论(0) 推荐(0) 编辑
摘要: NSDictionary *param = @{@"key1":@"value1",@"key2":@"value2"};NSError *parseError = nil; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:... 阅读全文
posted @ 2016-01-25 18:06 嗷大喵 阅读(8087) 评论(0) 推荐(0) 编辑
摘要: -(void)uploadImages:(NSArray *)images atIndex:(NSInteger)index token:(NSString *)token uploadManager:(QNUploadManager *)uploadManager keys:(NSMutableA... 阅读全文
posted @ 2016-01-13 16:22 嗷大喵 阅读(2572) 评论(0) 推荐(1) 编辑
摘要: UICollectionViewFlowLayout has cached frame mismatchThis is likely occurring because the flow layout subclass MyLineLayout is modifying attributes ret... 阅读全文
posted @ 2016-01-05 11:22 嗷大喵 阅读(954) 评论(0) 推荐(0) 编辑
摘要: Xcode6 只支持iOS7和iOS8的模拟器Xcode7 只支持iOS9和iOS8的模拟器Xcode 并不会识别 SDKs 目录下的模拟器,我经过一些尝试以后,发现要放在这个目录下:/Library/Developer/CoreSimulator/Profiles/Runtimes/注意:是根目录... 阅读全文
posted @ 2015-10-22 15:43 嗷大喵 阅读(1727) 评论(0) 推荐(0) 编辑