简体   繁体   English

如何更改iPhone应用程序设置?

[英]How to change iPhone application Settings?

I have such problem ... In my iPhone Application I want to import settings I create a Settings.bundle and Settings appear when I go to close my application and go to the settings of iPhone I can see the settings that I import. 我有这样的问题...在我的iPhone应用程序中,我想导入设置,我创建一个Settings.bundle,然后在我关闭应用程序并转到iPhone的设置时出现设置,我可以看到我导入的设置。 Now I want same settings to be visible in mt application. 现在,我希望相同的设置在mt应用程序中可见。 I dont want to close my application to change settings I want to change settings in my applications !!! 我不想关闭我的应用程序以更改设置我想更改我的应用程序中的设置! How I can do this ??? 我该怎么做???

According to Apple, the settings available in your application should be of a different nature to the settings you access outside of the application (accessed via Springboard's Settings page). 根据Apple的说法,应用程序中可用的设置应与您在应用程序外部访问(通过Springboard的“设置”页面访问)的设置具有不同的性质。

The distinction is as follows: 区别如下:

  • Settings inside your application should be settings the user might want to frequently change. 应用程序内部的设置应该是用户可能希望经常更改的设置。 That's why they're inside your app, for quick access. 这就是为什么它们位于您的应用程序内部以便快速访问的原因。 An example: background music on/off in a game. 例如:在游戏中打开/关闭背景音乐。

  • Settings outside your application should be the sort of infrequently changed "preference" settings that the user might only ever configure once, or very infrequently. 应用程序外部的设置应该是用户不经常更改一次或很少配置的不经常更改的“首选项”设置。 For example, a "Units of measurement: metres/feet" setting would be suitable for this, since a user would probably just configure it once when they first installed the app. 例如,“度量单位:米/英尺”设置将适用于此,因为用户可能会在首次安装该应用程序时对其进行一次配置。

So, to summarise, the same settings shouldn't be replicated in both places. 因此,总而言之,不应在两个地方都复制相同的设置。

But don't just trust me, read exactly what Apple say . 但是,不要只是相信我, 请准确阅读Apple所说的话

Good advice from Apple here, I recommend you follow it. 在这里,Apple提供了很好的建议,我建议您遵循它。

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

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