iPhone 4s和5上的Xcode 4.5不同的iPhone背景 [英] Xcode 4.5 different iPhone backgroud on iPhone 4s and 5

查看:96
本文介绍了iPhone 4s和5上的Xcode 4.5不同的iPhone背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的iPhone应用程序制作了两张不同的背景图像:一张为640x960px(iPhone4s),另一张为640x1136px(iPhone5).但是,当我在Xcode 4.5 Main Storyboard中创建应用程序布局时,如何为iPhone4s和iPhone5定义和创建它?这样当我选择iPhone5屏幕时背景会自动更新吗?

I have made two different background images for my iPhone app: one in 640x960px (iPhone4s) and one in 640x1136px (iPhone5). But when I create the application layouts in the Xcode 4.5 Main Storyboard, how do I define and create it for both iPhone4s and iPhone5? So that the background automatically updates when i choose iPhone5 screen?

推荐答案

只需导入具有正确后缀的背景图片

Just import your background image with the correct suffix

例如:

myImage.png用于非视网膜显示

myImage@2x.png用于视网膜显示

myImage-568h@2x.png适用于iPhone 5

myImage-568h@2x.png for iPhone 5

这篇关于iPhone 4s和5上的Xcode 4.5不同的iPhone背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆