Commit a3d1ab43 authored by 连书敏's avatar 连书敏

修复:当照片按时间降序排列时,选取照片错误问题

parent f3a731aa
......@@ -635,7 +635,11 @@ static CGSize AssetGridThumbnailSize;
if (tzImagePickerVc.maxImagesCount <= 1) {
if (tzImagePickerVc.allowCrop) {
TZPhotoPreviewController *photoPreviewVc = [[TZPhotoPreviewController alloc] init];
if (tzImagePickerVc.sortAscendingByModificationDate) {
photoPreviewVc.currentIndex = _models.count - 1;
}else{
photoPreviewVc.currentIndex = 0;
}
photoPreviewVc.models = _models;
[self pushPhotoPrevireViewController:photoPreviewVc];
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment