iOS Universal storyboard on iPhone 5 & 5s issue

天涯浪子 提交于 2019-12-04 06:48:28

问题


I would like to get some help on how to handle app (storyboard) is set to Universal.

When app run (with a single viewcontroller with a navbar) on a iPhone 5s simulator (with iOS 7.x), a thick black appears on top & bottom iPhone 5s with iOS 7.x SDK

When switch to iPhone 5.0 with iOS 8.x simulator, no issue. iPhone 5s with iOS 8.x SDK

Is there any code to fix (remove header & footer) gap in black?


回答1:


The thick black bars on top and bottom (also known as letterboxing) are because you have no launch image for the 4-inch screen. Add one. Without this, your app is treated as if it were running on a 4s (3.5-inch screen).



来源:https://stackoverflow.com/questions/26748546/ios-universal-storyboard-on-iphone-5-5s-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!