首页 > 其他 > 详细

kCGImagePropertyExifDictionary 引用错误

时间:2014-03-18 15:58:04      阅读:726      评论:0      收藏:0      [点我收藏+]

kCGImagePropertyExifDictionary 引用错误

使用 AVFoundation拍照

bubuko.com,布布扣
    //获取图片
    [outputImage captureStillImageAsynchronouslyFromConnection:videoConnection completionHandler:^(CMSampleBufferRef imageSampleBuffer, NSError *error) {
        CFDictionaryRef exifAttachments = CMGetAttachment(imageSampleBuffer, kCGImagePropertyExifDictionary, nil);
        if (exifAttachments) {
        }
        // 获取图片数据
        NSData *imageData = [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageSampleBuffer];
        UIImage *thePhoto = [[[UIImage alloc] initWithData:imageData] autorelease];
        smallInfoImage.image = thePhoto;
        
        
        //保存图片到本地及数据库;
        [self writeImageToFile:thePhoto];
        


        
        

    }];
bubuko.com,布布扣

 

错误:kCGImagePropertyExifDictionary", referenced from

 

修复方法:

添加库

  • ImageIO.framework
  • #import <ImageIO/CGImageProperties.h>

kCGImagePropertyExifDictionary 引用错误,布布扣,bubuko.com

kCGImagePropertyExifDictionary 引用错误

原文:http://www.cnblogs.com/cocoajin/p/3607818.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!