iOS 8 UIImage Metadata

蓝咒 提交于 2019-12-06 06:09:20
Wu Jianfeng

After upgrade to Xcode6, you have to get the image in dismissViewController's completion block, or more complex method: get the image from asset.

Please try the following code:

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

    [picker dismissViewControllerAnimated:YES completion::^{
        UIImage* image = [info objectForKey:UIImagePickerControllerOriginalImage]; 
        [self metaDataFromAssetLibrary:info];       
    }];

Also you can reference john.k.doe's answer in didFinishPickingMediaWithInfo return nil photo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!