When you are using Xcode to make an iPhone app, how do you change the app's icon?

时光毁灭记忆、已成空白 提交于 2019-12-20 16:30:33

问题


When you are using Xcode to make an iPhone app, how do you change the app's icon? Right now my icon for my app is just plain white.


回答1:


Create a 57x57 PNG file and import it into your project bundle. Then open the .plist file that is included in your project and edit the value for the key "Icon File" to match the name of the icon you provided (CFBundleIconFile is the actual key, but the Xcode editor will display the nicer name for you).




回答2:


In Xcode 4, you can go to your app's Summary page and there is a section called App Icons. Then just drag and drop an image into one of the "drop zones". It just works! :D




回答3:


If you don't specify the icon in the Info.plist file, then Xcode assumes that a file named "icon.png" in your resources folder is the icon for the application.




回答4:


In Xcode4 go to your applications summary section by selecting target project there you see section with name app icons.select your icon image of size 57x57.just do it it will work




回答5:


In Xcode 5 you can do it very simply: 1) go to images.xcassets 2) click on AppIcon 3) select Show Overview instead of Slicing 4) drag and drop the appropriate icon sizes onto the icon slots 5) rebuild - and you are good to go.



来源:https://stackoverflow.com/questions/1317419/when-you-are-using-xcode-to-make-an-iphone-app-how-do-you-change-the-apps-icon

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!