diff --git a/TZImagePickerController/TZImagePickerController/TZImagePickerController.m b/TZImagePickerController/TZImagePickerController/TZImagePickerController.m index 28ded3ab..0ab2c22b 100644 --- a/TZImagePickerController/TZImagePickerController/TZImagePickerController.m +++ b/TZImagePickerController/TZImagePickerController/TZImagePickerController.m @@ -52,7 +52,6 @@ - (void)viewDidLoad { if (iOS7Later) { self.navigationBar.barTintColor = [UIColor colorWithRed:(34/255.0) green:(34/255.0) blue:(34/255.0) alpha:1.0]; self.navigationBar.tintColor = [UIColor whiteColor]; - self.automaticallyAdjustsScrollViewInsets = NO; } } @@ -457,7 +456,6 @@ - (void)settingBtnClick { } - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { - if (iOS7Later) viewController.automaticallyAdjustsScrollViewInsets = NO; if (_timer) { [_timer invalidate]; _timer = nil;} [super pushViewController:viewController animated:animated]; } @@ -544,9 +542,7 @@ - (void)configTableView { CGFloat top = 0; CGFloat tableViewHeight = 0; if (self.navigationController.navigationBar.isTranslucent) { - top = 44; - if (iOS7Later) top += 20; - tableViewHeight = self.view.tz_height - top; + tableViewHeight = self.view.tz_height; } else { CGFloat navigationHeight = 44; if (iOS7Later) navigationHeight += 20; diff --git a/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m b/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m index fd1b95ac..d5235627 100644 --- a/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m +++ b/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m @@ -123,9 +123,7 @@ - (void)configCollectionView { CGFloat top = 0; CGFloat collectionViewHeight = 0; if (self.navigationController.navigationBar.isTranslucent) { - top = 44; - if (iOS7Later) top += 20; - collectionViewHeight = tzImagePickerVc.showSelectBtn ? self.view.tz_height - 50 - top : self.view.tz_height - top;; + collectionViewHeight = tzImagePickerVc.showSelectBtn ? self.view.tz_height - 50 : self.view.tz_height; } else { CGFloat navigationHeight = 44; if (iOS7Later) navigationHeight += 20;