动态应用内设置 [英] Dynamic In-App Settings

查看:99
本文介绍了动态应用内设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个位置很重要的应用.目前,我在设置捆绑中有一个多值设置,其中定义了5个位置.这种方法的问题在于设置捆绑包是静态的-也就是说,据我所知,我无法从服务器上的JSON列表中进行更新.

I have an app where Location is important. Currently I have a multi-value setting in the settings bundle where I have 5 locations defined. The problem with this approach is that the settings bundle is static - i.e. I cannot update that from a JSON list on my server as far as I know.

我想从服务器上的动态列表更新位置列表.

I want to update the location list from a dynamic list on the server.

我看过InAppSettingsKit,但这也使用了标准设置包.是否可以使用InAppSettingsKit从远程列表动态导入设置更新.

I have looked at InAppSettingsKit but this also uses the standard settings bundles. Is it possible to use InAppSettingsKit to import settings updates dynamically from a remote list.

还有其他方法可以做我想做的事吗?

Are there other ways to do what I am trying to do?

推荐答案

您将无法动态更改有关Settings.app的列表. Settings.app始终使用应用程序捆绑包中的静态架构plist. (您可以使用自由格式的文本字段,但这可能无法满足您的要求.)

You won't be able to change the list dynamically with regards to Settings.app. Settings.app always uses the static schema plist from your app bundle. (You could resort to a freeform text field but that probably doesn't catch your case.)

使用InAppSettingsKit,您可以完成此任务,但还需要做一些额外的工作:对于动态部件,您将需要使用

With InAppSettingsKit, you can accomplish that but you have to do some extra work: For the dynamic parts, you'll want to use a custom view controller, e.g. a table view controller.

这篇关于动态应用内设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆