iPhone 5 - what naming convention the new images have to follow?

后端 未结 4 969
情歌与酒
情歌与酒 2020-12-02 12:44

What name convention the new images have to have to be loaded by the new iPhone 5?

We see that we have to have 3 default images to be loaded by the device

         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 12:45

    If you are looking for something similar to ~iPad or ~iPhone (like ~586h) there isn't anything build in like that. But you can easily add it yourself by expanding UIImage class.

    Have a look at this source snippet (UIImage+Retina4) for information about how to achieve. Just add this UIImage category and there will be support for ~568h@2x files.

提交回复
热议问题