开发者

How to specify image for the Settings app in iPhone app

开发者 https://www.devze.com 2022-12-18 20:41 出处:网络
How do I specify the image for the Setting in the iPhone for my iPhone app? What are the requirements for the images开发者_如何学JAVA?

How do I specify the image for the Setting in the iPhone for my iPhone app? What are the requirements for the images开发者_如何学JAVA?


In addition to the settings bundle, your application bundle can contain a custom icon for your application settings. If a file with the name Icon-Settings.png is located in the top of your application’s bundle directory, that icon is used to identify your application preferences in the Settings application. If no such image file is present, the Settings application uses your application’s icon file (Icon.png by default) instead, scaling it as necessary. Your Icon-Settings.png file should be a 29 x 29 pixel image.

From "Application Preferences"


From the newest "iPhone Human Interface Guides", you should update your application bundle so that it contains only the "Icon-Small.png", instead of "Icon-Settings.png".


And to add to Squeegy's comment -- the docs state that if you don't include an image file named Icon-Settings.png, it will use the icon.png from the app. But there are times (Notifications screen) which actually don't default to the icon.png name, and you need to specify the name (icon.png) in your info.plist file. Good practice to do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号