【问题标题】:How to set Background image for all iDevice?如何为所有 iDevice 设置背景图像?
【发布时间】:2015-01-06 11:21:22
【问题描述】:

我设计了一个通用应用程序,我想为所有 iDevice 设置图像,包括 1x、2x、Retina 4 2x、3x?我应该怎么做?以及如何设置横向和纵向。提前感谢

【问题讨论】:

    标签: ios objective-c xcode swift


    【解决方案1】:

    此命名约定将允许您为每个设备获取正确的图像:

    image@2x iPhone 4/4s
    image-568h@2x iPhone 5/5s
    image-667h@2x iPhone 6
    image-736h@3x iPhone 6+

    本文提供了一些解释:http://www.reigndesign.com/blog/preparing-for-the-new-iphone-6-and-iphone-6-plus-screen-sizes/

    就每个方向/方向变化改变图像而言,这篇文章似乎很好地解释了必要的调用。

    Alternative iOS layouts for portrait and landscape using just one .xib file

    【讨论】:

    • 你知道这个问题是关于原生应用程序开发的,而不是网页,对吧?
    猜你喜欢
    • 1970-01-01
    • 2014-06-23
    • 1970-01-01
    • 1970-01-01
    • 2021-07-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多