Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何为 iPhone 5 屏幕分辨率开发或迁移应用程序? 如何处理 iPhone 5 的屏幕尺寸?
我目前在 App Store 上有我的应用程序,但如果我在 iphone 5 中查看它,它的字母加框并且顶部和底部都有黑色区域。我想在不做太多工作的情况下利用全屏。那么谁能解释一下最好的方法是什么?
谢谢,
添加 -568h 启动图像。
将主窗口框架设置为应用程序委托中的 UIScreen mainScreen 边界。
如果您的代码中的所有其他内容都根据您的视图大小自行调整,那么应该没有太多其他事情可做。
这在文档和网络上的许多博客文章中都有介绍。谷歌是你的朋友。