[英]Can I use just 2 sets of background pictures for my app and still support iphone 5?
I have 2 files called image.png and image@2x.png sizes: 320x568 and 640x1136. 我有2个名为image.png和image@2x.png的文件:320x568和640x1136。 If I use those files as background, does this solve the dead space on the iphone 5?
如果我将这些文件用作背景,是否可以解决iPhone 5上的死区? Will the iphone 5 load the @2x picture?
iPhone 5会加载@ 2x图片吗? I understand that in an iphone with 3.5 and lower the background picture will get cut but I don't really care about it.
我知道在3.5及以下版本的iPhone中,背景图片会被剪切掉,但我并不在乎。
I have a project that is for both iPhone 5 and the four. 我有一个同时适用于iPhone 5和iPhone 4的项目。 For my background image, I made a uiview that was the size of the entire view.
对于我的背景图片,我创建了一个uiview,它是整个视图的大小。 I then hooked this up to my background jpeg file.
然后,我将其连接到我的背景jpeg文件中。 Under mode in the attributes inspector, I selected scale to fill.
在属性检查器的模式下,我选择要填充的比例。 Since the uiview is held to all sides of the view, it works for both.
由于uiview固定在视图的所有侧面,因此对两者都适用。 It looks great in either size screen.
在任何尺寸的屏幕上看起来都很棒。 The jpeg is pretty high res, but I didnt need to place any @2x.
jpeg的分辨率很高,但是我不需要放置任何@ 2x。 Hope this helps you out.
希望这可以帮助你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.