适配iPhoneX

2018-03-12  本文已影响0人  其实我是个有意思的人

需要在项目设置里面直接用LaunchScreen.xib或者LaunchScreen.storyboard进行配置启动图或者images-LaunchImage 里面添加上iPhoneX的启动图 1125 × 2436 ,否则 上下都会留有黑色区域。

X的状态栏高是44 导航栏高88  tabbar高度是83  

CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame]; 

来获取 状态栏 不要写死数字。

上一篇 下一篇

猜你喜欢

热点阅读