-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get all photos? #78
Comments
The |
it still same .. But when i use this code |
Try this: pickerController.didSelectAssets = { (assets: [DKAsset]) in
print(assets.count)
dispatch_async(dispatch_get_global_queue(0, 0), {
let options = PHImageRequestOptions()
options.deliveryMode = .HighQualityFormat
options.synchronous = true
for (_, asset) in assets.enumerate() {
asset.fetchImageWithSize(PHImageManagerMaximumSize, options: options) { image, info in
self.images.append(image!)
}
}
print(self.images.count)
})
} |
Could you post the error stacktrace? |
Could you try to replace the condition if let isInCloud = info?[PHImageResultIsInCloudKey]?.boolValue
where isInCloud && self.autoDownloadWhenAssetIsInCloud { to if let isInCloud = info?[PHImageResultIsInCloudKey]?.boolValue
where image == nil && isInCloud && self.autoDownloadWhenAssetIsInCloud { Let me know if that works :) |
You are awesome. THANKS A LOT !!!! YOU saved my life. I was scratching my head ..calling my self totaly dumb..Thanks ..So the problem was downloading images from cloud ..Thanks Again |
Hi . I m facing a problem . When i selected multiple photo e.x 18 photos selected ..It return me less photo instead of all.Here is my code
let pickerController = DKImagePickerController()
var images:[UIImage] = []
pickerController.didSelectAssets = { (assets: [DKAsset]) in
print(assets.count) // This return me exact same value which i select
for asset in assets {
asset.fetchOriginalImageWithCompleteBlock({ (image, info) -> Void in
print(image) //return less images
self.images.append(image!)
print(self.images.count) //Return less images count
})
}
}
self.presentViewController(pickerController, animated: true) {}
can u help me out . Am i wrong someWhere ?
The text was updated successfully, but these errors were encountered: