摘要: kCGImagePropertyExifDictionary 引用错误使用 AVFoundation拍照 //获取图片 [outputImage captureStillImageAsynchronouslyFromConnection:videoConnection completionHandler:^(CMSampleBufferRef imageSampleBuffer, NSError *error) { CFDictionaryRef exifAttachments = CMGetAttachment(imageSampleBuffer, kCGImage... 阅读全文
posted @ 2014-03-18 15:14 cocoajin 阅读(1773) 评论(0) 推荐(0) 编辑
摘要: Objective-C中3种枚举比较及KVO两个小技巧一:oc的3种枚举for循环for in枚举块 如代码NSUInteger totalCount = 10000;NSMutableArray *array = [NSMutableArray arrayWithCapacity:totalCount]; //create an array including 10000 elementsfor (int i = 0; i<totalCount; i++) { array[i] = [@(i) stringValue];} //C Language For Loop Enu... 阅读全文
posted @ 2014-03-18 14:18 cocoajin 阅读(785) 评论(0) 推荐(0) 编辑