Commit a68f8488 authored by 谭真's avatar 谭真 Committed by GitHub

Merge pull request #413 from lianshumin/master

修复:当照片按时间降序排列时,选取照片错误问题。
parents a8e45650 a3d1ab43
......@@ -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