How to build an iOS like settings module?

我们两清 提交于 2019-12-03 07:20:57

问题


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.

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.

How does iOS achieve this? Is that table view?

I mean this kind of design


回答1:


InAppSettingsKit as already recommended by @hennes is used for extending functionality that is already available.

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.




回答2:


IF you want it just in your app, just use a tableView set to Group style. There are a lot of tutorials on TableViews




回答3:


You might want to try InAppSettingsKit.




回答4:


There is another option, you can use BaseKit (I'm the author)

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://stackoverflow.com/questions/5338390/how-to-build-an-ios-like-settings-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!