Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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];
}
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down