Skip to content

适配iPhone X的导航条显示不全 #73

@huangwangxin

Description

@huangwangxin

今天在iPhone X模拟器上跑,导航栏显示不全。
在UINavigationBar+Awesome.m文件中31行改为如下:
CGFloat height = [UIApplication sharedApplication].statusBarFrame.size.height;
self.overlay = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.bounds), CGRectGetHeight(self.bounds) + height)];

这样改合适吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions