Unverified Commit f3fb79a3 authored by 谭真's avatar 谭真 Committed by GitHub

Merge pull request #1570 from baiyidjp/fix

fix:选择单张照片时,如果照片的数据为 nil,回传空数组。
parents eaaf6603 d385581d
......@@ -825,7 +825,15 @@ static CGFloat itemMargin = 5;
}];
[photoPreviewVc setDoneButtonClickBlockCropMode:^(UIImage *cropedImage, id asset) {
__strong typeof(weakSelf) strongSelf = weakSelf;
[strongSelf didGetAllPhotos:@[cropedImage] assets:@[asset] infoArr:nil];
NSArray *assets = @[];
if (asset) {
assets = @[asset];
}
NSArray *photos = @[];
if (cropedImage) {
photos = @[cropedImage];
}
[strongSelf didGetAllPhotos:photos assets:assets infoArr:nil];
}];
[self.navigationController pushViewController:photoPreviewVc animated:YES];
}
......
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