Skip to content

Commit

Permalink
update StatusBarHeight comment in QMUI_CommonDefines.h
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyumiao committed Oct 7, 2019
1 parent 15f3ff1 commit c6abf10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QMUIKit/QMUICore/QMUICommonDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
/// tabBar相关frame
#define TabBarHeight (IS_IPAD ? (IS_NOTCHED_SCREEN ? 65 : (IOS_VERSION >= 12.0 ? 50 : 49)) : (IS_LANDSCAPE ? PreferredValueForVisualDevice(49, 32) : 49) + SafeAreaInsetsConstantForDeviceWithNotch.bottom)

/// 状态栏高度(来电等情况下,状态栏高度会发生变化,所以应该实时计算)
/// 状态栏高度(来电等情况下,状态栏高度会发生变化,所以应该实时计算,iOS 13 起,来电等情况下状态栏高度不会改变)
#define StatusBarHeight ([UIApplication sharedApplication].statusBarHidden ? 0 : [[UIApplication sharedApplication] statusBarFrame].size.height)

/// 状态栏高度(如果状态栏不可见,也会返回一个普通状态下可见的高度)
Expand Down

0 comments on commit c6abf10

Please sign in to comment.