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

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

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