Commit 7a91429c authored by yuzheng.tz's avatar yuzheng.tz

处理全局隐藏状态栏的情形

parent b8f51d02
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<string>armv7</string> <string>armv7</string>
</array> </array>
<key>UIStatusBarHidden</key> <key>UIStatusBarHidden</key>
<true/> <false/>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
......
...@@ -590,11 +590,11 @@ ...@@ -590,11 +590,11 @@
CGFloat tableViewHeight = 0; CGFloat tableViewHeight = 0;
if (self.navigationController.navigationBar.isTranslucent) { if (self.navigationController.navigationBar.isTranslucent) {
top = 44; top = 44;
if (iOS7Later) top += 20; if (iOS7Later && !TZ_isGlobalHideStatusBar) top += 20;
tableViewHeight = self.view.tz_height - top; tableViewHeight = self.view.tz_height - top;
} else { } else {
CGFloat navigationHeight = 44; CGFloat navigationHeight = 44;
if (iOS7Later) navigationHeight += 20; if (iOS7Later && !TZ_isGlobalHideStatusBar) navigationHeight += 20;
tableViewHeight = self.view.tz_height - navigationHeight; tableViewHeight = self.view.tz_height - navigationHeight;
} }
......
...@@ -139,11 +139,11 @@ static CGSize AssetGridThumbnailSize; ...@@ -139,11 +139,11 @@ static CGSize AssetGridThumbnailSize;
CGFloat collectionViewHeight = 0; CGFloat collectionViewHeight = 0;
if (self.navigationController.navigationBar.isTranslucent) { if (self.navigationController.navigationBar.isTranslucent) {
top = 44; top = 44;
if (iOS7Later) top += 20; if (iOS7Later && !TZ_isGlobalHideStatusBar) top += 20;
collectionViewHeight = tzImagePickerVc.showSelectBtn ? self.view.tz_height - 50 - top : self.view.tz_height - top;; collectionViewHeight = tzImagePickerVc.showSelectBtn ? self.view.tz_height - 50 - top : self.view.tz_height - top;;
} else { } else {
CGFloat navigationHeight = 44; CGFloat navigationHeight = 44;
if (iOS7Later) navigationHeight += 20; if (iOS7Later && !TZ_isGlobalHideStatusBar) navigationHeight += 20;
collectionViewHeight = tzImagePickerVc.showSelectBtn ? self.view.tz_height - 50 - navigationHeight : self.view.tz_height - navigationHeight; collectionViewHeight = tzImagePickerVc.showSelectBtn ? self.view.tz_height - 50 - navigationHeight : self.view.tz_height - navigationHeight;
} }
......
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