设置包的自定义视图控制器? [英] Custom view controller for Settings bundle?

查看:78
本文介绍了设置包的自定义视图控制器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有设置视图的应用程序,可从远程服务器动态加载设置。它工作正常。

I have an application with a settings view that loads settings dynamically from a remote server. It's working fine.

我也想在iPhone设置中使用这些设置,但是设置包似乎仅限于加载和保存到本地NSUserDefaults的简单键值。有没有办法为此指定自定义视图?

I want to also make these available in iPhone Settings, but the Settings bundle seems to be limited to simple key-values loaded and saved to the local NSUserDefaults. Is there a way to specify a custom view for this?

推荐答案

设置bundle基于plist文件,不包含任何代码。您无法在设置应用中执行任何类型的计算。你已经建立了自己的设置UI,并把它放在你的应用程序。

Setting bundles are based on plist files and do not contain any code. You cannot perform any kind of calculation in the Settings app. You have build your own settings UI and put it in your app.

Apple使用更复杂的设置包执行代码,但App Store中的应用程序无法执行此操作。

Apple does use more complex settings bundles which perform code, but apps in the App Store cannot do that.

这篇关于设置包的自定义视图控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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