forked from mirrors/linphone-iphone
fix statusBar height error for iphoneX,XR and Xs
This commit is contained in:
parent
e76955d8ab
commit
b2513d760a
1 changed files with 1 additions and 1 deletions
|
|
@ -393,7 +393,7 @@
|
|||
}
|
||||
|
||||
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
|
||||
#define IS_IPHONE_X (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 812.0)
|
||||
#define IS_IPHONE_X (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height >= 812.0)
|
||||
#define IPHONE_STATUSBAR_HEIGHT (IS_IPHONE_X ? 35 : 20)
|
||||
|
||||
- (void)update:(UICompositeViewDescription *)description
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue