How to specify size for iPhone 6/7 customised edge-to-edge image?

后端 未结 12 1023
死守一世寂寞
死守一世寂寞 2020-11-28 01:59

Say I want a bundled image to take up all available screen width in an iPhone app - for example a banner. I\'d create my_banner.png with width 320px

12条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 02:06

    I checked the naming convention of a launch image generated from an asset catalog via Xcode 6 and the landscape version for iPhone 6+, for example, had: LaunchImage-Landscape-736h@3x.png

    Based on that, I'd presume it would be as follows, for retina devices, assuming a base file desert.png:

    • desert@2x : iPhone 4s (320 x 420)
    • desert-568h@2x : iPhones 5, 5C and 5S (320 x 568)
    • desert-667h@2x : iPhone 6 (375 x 667)
    • desert-736h@3x : iPhone 6+ (414 x 736)
    • desert@2x~ipad : iPad (1024 x 768)

提交回复
热议问题