ios app not fitting iphone 5 screen

隐身守侯 提交于 2019-12-24 08:21:23

问题


My ios app does not fit on iphone 5 screen. When I run the app, I can see blank space at the top and bottom of the screen. I have made the app compatible for both iphone sizes. But Since I have updated to the latest xcode, I am facing this issue. See screen shot. Can any one please help?

回答1:


You probably may not have set your Default-568h image.




回答2:


On the simulator make sure you have set to iPhone (Retina 4-inch). You can do this by going simulator menu at the top go to Hardware->Device->iPhone (Retina 4-inch) that will change the phone simulator to the iPhone 5 version.

click here for more get information for naming convention of images [here]Naming convention for iPhone 5 images? [here]




回答3:


Try setting AutoresizingMask to your container views instead of assigning appFrame. I have faced the same problem while moving to iOS 7. Solution comes with AutoresizingMask. iOS 7 has full Screen layout for ViewControllers.



来源:https://stackoverflow.com/questions/19948432/ios-app-not-fitting-iphone-5-screen

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