iOS中LaunchImage的尺寸

在我們應(yīng)用開發(fā)中,用戶在手機(jī)上點(diǎn)開我們的應(yīng)用,從手指點(diǎn)擊到我們的應(yīng)用圖標(biāo)到我們的應(yīng)用真正啟動是需要一段時(shí)間的,隨著開發(fā)的推進(jìn),有可能會把這個時(shí)間變得比較長,這個時(shí)候我們就需要有一個占位圖來在用戶點(diǎn)擊了我們的應(yīng)用之后馬上顯示出來給用戶看。這個東西就是 LaunchImage。

如何使用

添加 LaunchImage很簡單,只需要在圖片文件夾Images.xcassets中點(diǎn)擊 +,然后選擇App Icons & Launch Images 然后選擇 New iOS Launch Image就可以了。

addLuanchImage.png

尺寸大小

添加了之后我們就會看到一大堆等著我們填充的位置,這么多位置,看著真是不知道要寫填什么尺寸好。

showLuanchImage.png

那么下邊我就把每個位置對應(yīng)的圖片尺寸寫下來。

iPhone Portrait iOS 5,6

  • 1x : 320*480
  • 2x : 640*960
  • Retina : 640*1136

iPad Protrait Without Status Bar iOS 5,6

  • 1x : 768*1004
  • 2x : 1536*2008

iPad Portrait

  • 1x : 768*1024
  • 2x : 1536*2048

iPad Landscape Without Status Bar iOS 5,6

  • 1x : 1024*748
  • 2x : 2048*1496

iPad Landscape iOS 5,6

  • 1x : 1024*768
  • 2x : 2048 * 1536

iPhone Protrait iOS 8,9

  • Retina HD 5.5'' : 1242*2208
  • Retina HD 4.7'' : 750*1334

iPhone Landscape iOS 8,9

  • Retina HD 5.5'' : 2208 * 1242

iPhone Portrait iOS 7-9

  • 2x : 640*960
  • Retina4 : 640*1136

iPad Portrait iOS 7-9

  • 1x : 768*1024
  • 2x : 1536*2048

iPad Landscape iOS 7-9

  • 1x : 1024*768
  • 2x : 2048*1536

這樣設(shè)置好了之后,我們的應(yīng)用在啟動時(shí)就會顯示對應(yīng)的啟動圖片了。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容