I am really new to iPhone development. Currentlly I am setting up an option module for my application. The user should be able to edit some preferences.
我是iPhone开发的新手。 Currentlly我正在为我的应用程序设置一个选项模块。用户应该能够编辑一些首选项。
My first approach was to have some text fields. But I really like how iOS handles editing preferences. There is some kind of label. Clicking on that label opens another view with a field for editing. I hope you understand what I mean.
我的第一种方法是有一些文本字段。但我真的很喜欢iOS处理编辑首选项的方式。有某种标签。单击该标签将打开另一个视图,其中包含要编辑的字段。我希望你明白我的意思。
How does iOS achieve this? Is that table view?
iOS如何实现这一目标?那是表格视图吗?
I mean this kind of design
我的意思是这种设计
4 个解决方案
#1
17
InAppSettingsKit as already recommended by @hennes is used for extending functionality that is already available.
@hennes已经推荐的InAppSettingsKit用于扩展已有的功能。
If you add a Settings.bundle to your app then if it is correctly installed it will automatically show up in the Settings.app provided by Apple.
如果您将Settings.bundle添加到您的应用程序,那么如果它已正确安装,它将自动显示在Apple提供的Settings.app中。
#2
6
IF you want it just in your app, just use a tableView set to Group style. There are a lot of tutorials on TableViews
如果你只想在你的应用程序中使用它,只需使用tableView设置为组样式。 TableViews上有很多教程
#4
3
There is another option, you can use BaseKit (I'm the author)
还有另一种选择,你可以使用BaseKit(我是作者)
Source repo https://github.com/brunow/BaseKit Example of settings http://blog.brunowernimont.be/2012/06/22/example_of_settings_controller_with_basekit.html
来源回购https://github.com/brunow/BaseKit设置示例http://blog.brunowernimont.be/2012/06/22/example_of_settings_controller_with_basekit.html
#1
17
InAppSettingsKit as already recommended by @hennes is used for extending functionality that is already available.
@hennes已经推荐的InAppSettingsKit用于扩展已有的功能。
If you add a Settings.bundle to your app then if it is correctly installed it will automatically show up in the Settings.app provided by Apple.
如果您将Settings.bundle添加到您的应用程序,那么如果它已正确安装,它将自动显示在Apple提供的Settings.app中。
#2
6
IF you want it just in your app, just use a tableView set to Group style. There are a lot of tutorials on TableViews
如果你只想在你的应用程序中使用它,只需使用tableView设置为组样式。 TableViews上有很多教程
#3
#4
3
There is another option, you can use BaseKit (I'm the author)
还有另一种选择,你可以使用BaseKit(我是作者)
Source repo https://github.com/brunow/BaseKit Example of settings http://blog.brunowernimont.be/2012/06/22/example_of_settings_controller_with_basekit.html
来源回购https://github.com/brunow/BaseKit设置示例http://blog.brunowernimont.be/2012/06/22/example_of_settings_controller_with_basekit.html