今天在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)];
这样改合适吗?