简体   繁体   English

如何在iPhone应用程序中为“设置”应用程序指定图像

[英]How to specify image for the Settings app in iPhone app

How do I specify the image for the Setting in the iPhone for my iPhone app? 如何为iPhone应用程序在iPhone中为“设置”指定图像? What are the requirements for the images? 这些图像有什么要求?

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. 如果名称为Icon-Settings.png的文件位于应用程序包目录的顶部,则该图标用于标识“设置”应用程序中的应用程序首选项。 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. 如果不存在此类图像文件,则“设置”应用程序将使用应用程序的图标文件(默认情况下为Icon.png),并根据需要进行缩放。 Your Icon-Settings.png file should be a 29 x 29 pixel image. 您的Icon-Settings.png文件应为29 x 29像素的图像。

From "Application Preferences" 来自“应用程序首选项”

从最新的“ iPhone人机界面指南”中,您应该更新应用程序包,使其仅包含“ Icon-Small.png”,而不是“ 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. 为了增加Squeegy的注释-文档指出,如果不包括名为Icon-Settings.png的图像文件,它将使用应用程序中的icon.png。 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. 但是有时候(“通知”屏幕)实际上并不是默认的icon.png名称,您需要在info.plist文件中指定名称(icon.png)。 Good practice to do it. 好的做法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM