摘要:
kCGImagePropertyExifDictionary 引用错误使用 AVFoundation拍照 //获取图片 [outputImage captureStillImageAsynchronouslyFromConnection:videoConnection completionHandler:^(CMSampleBufferRef imageSampleBuffer, NSError *error) { CFDictionaryRef exifAttachments = CMGetAttachment(imageSampleBuffer, kCGImage... 阅读全文
摘要:
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... 阅读全文