如何添加iphone背景? [英] How to addapt iphone background?

查看:39
本文介绍了如何添加iphone背景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是开发新手,我正在尝试寻找如何为不同的 iphone(4s 5 5s 等)设置不同的背景图像我确实设法拥有一个背景图像,但在所有模拟器中都是相同的仅适用于 Iphone 6 plus关于我如何做到这一点的任何想法?

I am new to developing and I am trying to find how to have a different background image for different iphones (4s 5 5s ect...) I did manage to have a background image but its the same in all simulators so it only fits the Iphone 6 plus any ideas on how I could do this?

谢谢

推荐答案

如果你使用 xcassets 作为你的资源:

If you use xcassets for your ressources :

如果你不这样做,你可以添加一个:

If you don't you can add one :

您可以将图像添加到特定于设备的图像集中,如下所示:

You can add your images in an image set specific to devices like below :

您只需要相应地配置正确的面板(选择特定于设备并选择您需要的所有内容):

You just have to configure the right panel accordingly (selecting device specific and choosing all that you need) :

一个缺点:.jpg 支持似乎与 iOS7 不兼容.png 中的大图像...很大.

One drawback : The .jpg support seems to not be compatible with iOS7. Big images in png are... big.

这篇关于如何添加iphone背景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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