How do I specify both icons for a universal iPhone/iPad app?

前端 未结 5 615
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 09:22

I hope to create a single app that supports both the iPhone and the iPad. The app works in the simulator for both devices as desired. Now I\'m trying to build and deploy it.

5条回答
  •  爱一瞬间的悲伤
    2020-12-07 10:03

    Add a CFBundleIconFiles key of type Array to your Info.plist. The array should contain 2 string items: the filenames of the two icons. The OS will then automatically choose the correct icon for each platform based on their pixel dimensions.

    You can keep the CFBundleIconFile key and have it point to the icon file for the iPhone for 3.0/3.1 compatibility.

    Update May 2010: Apple now has Technical Note explaining this in great detail: Technical Q&A QA1686 – App Icons on iPad and iPhone

提交回复
热议问题