@@ -213,6 +213,7 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
213213 TZImagePickerController *imagePickerVc = [[TZImagePickerController alloc ] initWithSelectedAssets: _selectedAssets selectedPhotos: _selectedPhotos index: indexPath.item];
214214 imagePickerVc.maxImagesCount = self.maxCountTF .text .integerValue ;
215215 imagePickerVc.allowPickingGif = self.allowPickingGifSwitch .isOn ;
216+ imagePickerVc.autoSelectCurrentWhenDone = NO ;
216217 imagePickerVc.allowPickingOriginalPhoto = self.allowPickingOriginalPhotoSwitch .isOn ;
217218 imagePickerVc.allowPickingMultipleVideo = self.allowPickingMuitlpleVideoSwitch .isOn ;
218219 imagePickerVc.showSelectedIndex = self.showSelectedIndexSwitch .isOn ;
@@ -279,6 +280,7 @@ - (void)pushTZImagePickerController {
279280 [imagePickerVc setUiImagePickerControllerSettingBlock: ^(UIImagePickerController *imagePickerController) {
280281 imagePickerController.videoQuality = UIImagePickerControllerQualityTypeHigh;
281282 }];
283+ imagePickerVc.autoSelectCurrentWhenDone = NO ;
282284
283285 // imagePickerVc.photoWidth = 1600;
284286 // imagePickerVc.photoPreviewMaxWidth = 1600;
@@ -292,9 +294,11 @@ - (void)pushTZImagePickerController {
292294 imagePickerVc.iconThemeColor = [UIColor colorWithRed: 31 / 255.0 green: 185 / 255.0 blue: 34 / 255.0 alpha: 1.0 ];
293295 imagePickerVc.showPhotoCannotSelectLayer = YES ;
294296 imagePickerVc.cannotSelectLayerColor = [[UIColor whiteColor ] colorWithAlphaComponent: 0.8 ];
297+ /*
295298 [imagePickerVc setPhotoPickerPageUIConfigBlock:^(UICollectionView *collectionView, UIView *bottomToolBar, UIButton *previewButton, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel, UIView *divideLine) {
296299 [doneButton setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
297300 }];
301+ */
298302 /*
299303 [imagePickerVc setAssetCellDidSetModelBlock:^(TZAssetCell *cell, UIImageView *imageView, UIImageView *selectImageView, UILabel *indexLabel, UIView *bottomView, UILabel *timeLength, UIImageView *videoImgView) {
300304 cell.contentView.clipsToBounds = YES;
@@ -527,11 +531,6 @@ - (void)refreshCollectionViewWithAddedAsset:(PHAsset *)asset image:(UIImage *)im
527531 [_selectedAssets addObject: asset];
528532 [_selectedPhotos addObject: image];
529533 [_collectionView reloadData ];
530-
531- if ([asset isKindOfClass: [PHAsset class ]]) {
532- PHAsset *phAsset = asset;
533- NSLog (@" location:%@ " ,phAsset.location );
534- }
535534}
536535
537536- (void )imagePickerControllerDidCancel : (UIImagePickerController *)picker {
0 commit comments