一.準備資料
1.icon表徵圖:
iphone:114*114:icon@2x.png 和57*57:icon.png
ipad:72*72:icon.png
2.啟動表徵圖
iphone: Default.png , Default@2x.png
ipad:
Default-Portrait.png iPad專用豎向啟動畫面 768x1024或者768x1004
Default-Landscape.png iPad專用橫向啟動畫面 1024x768或者1024x748
Default-PortraitUpsideDown.png iPad專用豎向啟動畫面(Home按鈕在螢幕上面),可省略 768x1024或者768x1004
Default-LandscapeLeft.png iPad專用橫向啟動畫面,可省略 1024x768或者1024x748
Default-LandscapeRight.png iPad專用橫向啟動畫面,可省略 1024x768或者1024x748
為了在iPad上使用上述的啟動畫面,你還需要在info.plist中加入key: UISupportedInterfaceOrientations。同時,加入值UIInterfaceOrientationPortrait, UIInterfacOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight。
二.常見錯誤
1.iphone/ipod touch application executable is missing a required architecture at least one of the following architecture must be present armv6
解決:
For some reason the default architecture settings with xCode 4.2 is only for armv7. Go to Target -> Build Settings -> Architectures -> Release on value dropdown pick "Other...",
remove $(ARCHS_STANDARD_32_BIT), and add 2 rows first with "armv6" and second "armv7"
Done
2.防止和系統名字函數同名的類或者方法