[英]How to manage universal app and their images for iPhone, iPod and iPad
我要開發一個新的應用程序。 對於每個屏幕(UIViewController),我將使用單獨的xib。
因此,每個屏幕也會有不同的圖像。
目前,我想在以下設備上使用我的應用。
iphone 5
的iPad
小型平板電腦
iPod(第3、4、5代)
因此,對於這些iOS設備,我如何管理xib及其各自的圖像。
對於我的簡單問題,我想說的是,在讀取@ 2x,2x @等時,在不同設備上“單擊按鈕圖像”需要多少張圖像,以及如何給它們命名?
因此,我要感謝一位專門為我的查詢寫答案並使我擺脫這種困惑的人。
謝謝
這些行直接來自《 資源編程指南》
MyImage.png - Default version of an image resource.
MyImage@2x.png - High-resolution version of an image resource for devices with Retina displays.
MyImage~iphone.png - Version of an image for iPhone and iPod touch.
MyImage@2x~iphone.png - High-resolution version of an image for iPhone and iPod touch devices with Retina displays.
基本上只有5種尺寸
對於列表1,您的MyImage~iphone.png
可以使用
對於清單2和3,您的MyImage@2x~iphone.png
可以使用
對於列表4和6,您的MyImage.png
將起作用
對於列表5,您的MyImage.png
將起作用。
因此您只需要四個圖像。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.