Commit d57e55b1 authored by yuzheng's avatar yuzheng

scaleAspectFillCrop和allowCrop都为true时,预览页面不允许左右滑动切换图片

parent cff59d07
......@@ -207,6 +207,11 @@
[_collectionView registerClass:[TZPhotoPreviewCell class] forCellWithReuseIdentifier:@"TZPhotoPreviewCell"];
[_collectionView registerClass:[TZVideoPreviewCell class] forCellWithReuseIdentifier:@"TZVideoPreviewCell"];
[_collectionView registerClass:[TZGifPreviewCell class] forCellWithReuseIdentifier:@"TZGifPreviewCell"];
TZImagePickerController *_tzImagePickerVc = (TZImagePickerController *)self.navigationController;
if (_tzImagePickerVc.scaleAspectFillCrop && _tzImagePickerVc.allowCrop) {
_collectionView.scrollEnabled = NO;
}
}
- (void)configCropView {
......
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