1.启动图添加1125x2436图片,否则上下都有黑边
![](https://img.haomeiwen.com/i3022339/1a47b6580b4dbd84.png)
2.状态栏增加24px,iphone X状态栏为44px。
![](https://img.haomeiwen.com/i3022339/6594187d214d9bd1.png)
3.Tabbar下方手机可操作区域为33px
![](https://img.haomeiwen.com/i3022339/d45dcf492ee59f41.png)
4.自定义Tabbar时删除原有Tabbar,解决办法
-(void)viewWillLayoutSubviews
{
[super viewWillLayoutSubviews];
// 删除系统自动生成的UITabBarButton
for (UIView *child in self.tabBar.subviews) {
if ([child isKindOfClass:[UIControl class]]) {
[child removeFromSuperview];
}
}
}
5.tabbleView头部多处出一部分高度,解决办法
_tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
6.后台定位
![](https://img.haomeiwen.com/i3022339/0224ae547a985b86.png)
网友评论