ios - requestImageDataForAsset returns nil image data -


i've been stuck couple of days. i've bee trying image within call nil. these options used:

 let options = phimagerequestoptions()             options.deliverymode = .highqualityformat             options.resizemode = .none 

i tried options set nil without luck. data got in info value passed block.

[phimageresultisincloudkey: 0,   phimageresultdeliveredimageformatkey: 9999,   phimagefileurlkey: file:///var/mobile/media/dcim/100apple/img_0052.jpg,   phimageresultrequestidkey: 84,   phimageresultisdegradedkey: 0,   phimageresultwantedimageformatkey: 9999,    phimageresultisplaceholderkey: 0,   phimagefilesandboxextensiontokenkey:    64b47b046511a340c57aa1e3e6e07994c1a13853;00000000;00000000;0000001a;com.apple.app-sandbox.read;;00000000;00000000;0000000000000000;/private/var/mobile/media/dcim/100apple/img_0051.jpg] 

i tried using requestimageforasset , got same result. thought using requestimagedataforasset i'll more control on data.

also, thought file exists in cloud, not phimageresultisincloudkey value set 0; otherwise, i'd download it.

by way, able smaller version of image predefined size of 200x200 inside view; however, when try larger version of it, nil. know image exists on phone higher res (i can see in photos app)

any appreciated.

i had similar issue , tried setting networkaccessallowed option on phimagerequestoptions object yes - seemed fix it. me issue images in cloud images on camera roll worked fine in cloud did not.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -