-
Notifications
You must be signed in to change notification settings - Fork 470
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
images from library have wrong order #251
Comments
@sergJozee I met the same problem. I pick the according index using |
@sergJozee @DesmondDAI Could you post your code about show chosen images? |
I tried to multi select photos: let pickerController = DKImagePickerController()
pickerController.assetType = .AllPhotos
pickerController.showsCancelButton = true
pickerController.maxSelectableCount = 5
pickerController.didSelectAssets = { (assets: [DKAsset]) in
for (index, asset) in self.selectedImageAssets.enumerate() {
asset.fetchImageWithSize(CGSizeMake(512, 512), options: getImageRequestOptions(), contentMode: PHImageContentMode.AspectFill, completeBlock: {
(image, info) in
print("index: \(index)")
})
}
} And the function getImageRequestOptions(): private func getImageRequestOptions() -> PHImageRequestOptions {
let options = PHImageRequestOptions()
options.deliveryMode = PHImageRequestOptionsDeliveryMode.HighQualityFormat
options.networkAccessAllowed = true
return options
} The printed |
Hi @DesmondDAI |
Update: using this method and then it should work well. |
When i pick images from the library i do not get the images to show in the correct order. The first image i pick from library does not always show as first image in the list with chosen images.
![schermafbeelding 2016-11-22 om 14 50 16](https://cloud.githubusercontent.com/assets/15928490/20526185/4532ef3c-b0c3-11e6-83b4-67d3dd9aeac5.png)
![schermafbeelding 2016-11-22 om 14 52 34](https://cloud.githubusercontent.com/assets/15928490/20526203/590530e2-b0c3-11e6-8eed-a5ec8e56fe44.png)
The text was updated successfully, but these errors were encountered: