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

发布于 2024-08-20 08:08:51 字数 50 浏览 6 评论 0原文

如何为我的 iPhone 应用程序指定 iPhone 中设置的图像?对图片有什么要求?

How do I specify the image for the Setting in the iPhone for my iPhone app? What are the requirements for the images?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

何以笙箫默 2024-08-27 08:08:51

除了设置包之外,您的应用程序包还可以包含应用程序设置的自定义图标。如果名称为 Icon-Settings.png 的文件位于应用程序包目录的顶部,则该图标用于在“设置”应用程序中标识您的应用程序首选项。如果不存在此类图像文件,“设置”应用程序将使用应用程序的图标文件(默认为 Icon.png),并根据需要进行缩放。您的 Icon-Settings.png 文件应该是 29 x 29 像素的图像。

来自“应用程序首选项”

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"

你的呼吸 2024-08-27 08:08:51

从最新的“iPhone人机界面指南”中,您应该更新您的应用程序包,使其仅包含“Icon-Small.png”,而不是“Icon-Settings.png”。

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".

阳光下慵懒的猫 2024-08-27 08:08:51

添加到 Squeegy 的评论中——文档指出,如果您不包含名为 Icon-Settings.png 的图像文件,它将使用应用程序中的 icon.png。但有时(通知屏幕)实际上并不默认为 icon.png 名称,您需要在 info.plist 文件中指定名称 (icon.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文