xcode UIView 未在 iPhone 5 模拟器上调整大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12479647/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
UIView is not resizing on iPhone 5 Simulator
提问by user1599262
Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?
I have UIViewController
with a view that is 320x480. I made autoresizing mask setup for UIView
to stretch it horizontally and vertically. But when I run it on iPhone 5 simulator there are black space at top and bottom.
我有UIViewController
一个 320x480 的视图。我做了自动调整蒙版设置UIView
以水平和垂直拉伸它。但是当我在 iPhone 5 模拟器上运行它时,顶部和底部有黑色空间。
Why UIView
is not resized automatically from 480 to 568 pixels (vertically) to fill the empty space ?
为什么UIView
不自动从 480 像素调整到 568 像素(垂直)以填充空白空间?
回答by Lukasz
You need to add [email protected] launch image to your project with 1136x640px resolution.
您需要将 [email protected] 启动图像添加到您的项目中,分辨率为 1136x640px。
See here: How to develop or migrate apps for iPhone 5 screen resolution?
请参阅此处: 如何为 iPhone 5 屏幕分辨率开发或迁移应用程序?