goTOP
November 24, 2014

Xcode6 建立 .xib LunchImage 啟動畫面

| |
手機相關 » Xcode | 閱覽(3262) | Posted by apao at 22:42
Language: Objective-C

> New Project
> Single View Application


點擊在新視窗中瀏覽此圖片


> Projec tName: LunchImage01
> 確認 Identity
> 確認 Deployment Info
> 確認 App Icons and Lunch Images


點擊在新視窗中瀏覽此圖片
確認一樣內容。


確認 LaunchScreen.xib
> View


點擊在新視窗中瀏覽此圖片


刪除 L x2個 中的文字區塊
刪除Constraints
插入 Image View


點擊在新視窗中瀏覽此圖片


拖放要使用的Image
Default-568h@2x.png
Default@2x.png


Default-568h@2x.png (iPhone 5 4" display 640 x 1136 pixels)
Default@2x.png (iPhone 4S 3.5" display 640 x 960 pixels)

點擊在新視窗中瀏覽此圖片

iOS 8 為
https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/LaunchImages.html#//apple_ref/doc/uid/TP40006556-CH22-SW1

settings_launch_2x.png
weather_launch_2x.png

For iPhone 6:

750 x 1334 (@2x) for portrait
1334 x 750 (@2x) for landscape
For iPhone 6 Plus:

1242 x 2208 (@3x) for portrait
2208 x 1242 (@3x) for landscape


Image View 設定

點擊在新視窗中瀏覽此圖片


確保 image 四邊與手機四邊貼緊
也不容易出現移位或空白
Add New Constraints


點擊在新視窗中瀏覽此圖片


按下Run 在 Simulator中測試

點擊在新視窗中瀏覽此圖片
Facebook twitter LINEk
文章来自: 本站原創
0 Comment(s)
我要發表評論
暱稱
密碼 [ 訪客無需密碼 ]
電郵
網址
開啟HTML 開啟UBB 開啟表情 隱藏 記住我