Commit 110ad2fd authored by chenbingiOS's avatar chenbingiOS

修复图片预览时底部工具条不能隐藏的问题

parent ea2693f2
...@@ -156,7 +156,6 @@ ...@@ -156,7 +156,6 @@
[_HUDIndicatorView stopAnimating]; [_HUDIndicatorView stopAnimating];
[_progressHUD removeFromSuperview]; [_progressHUD removeFromSuperview];
} }
[self dismissViewControllerAnimated:YES completion:nil];
} }
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
...@@ -197,6 +196,8 @@ ...@@ -197,6 +196,8 @@
- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated]; [super viewWillAppear:animated];
TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController;
[imagePickerVc hideProgressHUD];
if (_albumArr) return; if (_albumArr) return;
[self configTableView]; [self configTableView];
} }
......
...@@ -231,6 +231,7 @@ static CGSize AssetGridThumbnailSize; ...@@ -231,6 +231,7 @@ static CGSize AssetGridThumbnailSize;
imagePickerVc.didFinishPickingPhotosWithInfosHandle(photos,assets,infoArr); imagePickerVc.didFinishPickingPhotosWithInfosHandle(photos,assets,infoArr);
} }
[imagePickerVc hideProgressHUD]; [imagePickerVc hideProgressHUD];
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
}]; }];
} }
} }
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
__block BOOL _weakIsHideNaviBar = _isHideNaviBar; __block BOOL _weakIsHideNaviBar = _isHideNaviBar;
__weak typeof(_naviBar) weakNaviBar = _naviBar; __weak typeof(_naviBar) weakNaviBar = _naviBar;
__weak typeof(_naviBar) weakToolBar = _naviBar; __weak typeof(_toolBar) weakToolBar = _toolBar;
if (!cell.singleTapGestureBlock) { if (!cell.singleTapGestureBlock) {
cell.singleTapGestureBlock = ^(){ cell.singleTapGestureBlock = ^(){
// show or hide naviBar / 显示或隐藏导航栏 // show or hide naviBar / 显示或隐藏导航栏
......
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