DKImagePickerController
DKImagePickerController copied to clipboard
IPhone 6 fetch image from asset return nil
Hello,
I have problem sometimes fetch image from asset return nil only in IPhone 6 ,
for example when fetch image from asset with layout.itemSize.toPixel() = 100 * 100 asset.fetchImageWithSize(layout.itemSize.toPixel(), completeBlock: { image, info in imageView.image = image })
it works fine , but fetch it with 750.0 * 1086.0 return nil , also fetch it using fetchFullScreenImage return nil, fetchOriginalImage return nil
here is picker settings
pickerController.assetGroupTypes = [ PHAssetCollectionSubtype.smartAlbumUserLibrary, PHAssetCollectionSubtype.smartAlbumFavorites, PHAssetCollectionSubtype.albumRegular ] pickerController.maxSelectableCount = 10 pickerController.assetType = .allPhotos pickerController.sourceType = .photo pickerController.showsEmptyAlbums = false pickerController.autoDownloadWhenAssetIsInCloud = false pickerController.showsCancelButton = true
Tested device iphone 6 - ios 11.2.1
any suggestions?
any update on this @ferico55 .... I am getting similar issue sometimes it returns nil and sometimes it works...for bigger sized images it also sometimes take too much time to fetch images...
set pickerController.autoDownloadWhenAssetIsInCloud = true fix the problem for me >> it seems bug in ios
Hello @nikeshakya . Did you get this error when images were in iCloud?