How to create an editable UITableView, as in the Contacts application? (Iphone)

I am looking for a way to develop a view as shown below. What is the easiest way to do this? Should I just create a whole bunch of different custom UITableViewCell or is there some kind of structure that I can use?

In particular, I am wondering how to create separate editable cells, for example. cell with 'mobile (408) 555-5555'; how can I create this and allow users to edit it? If I also wanted to create a cell that allows users to select several parameters to be checked, how can I do this? Another case could be to use toggle switch in the cell.

NOTE. I am not going to develop a presentation of settings for other purposes.

enter image description here

+4
source share
2 answers

You can use my new favorite thing, static tables in a storyboard.

In the storyboard editor, create a new table view controller and set the content type to static. Set the number of sections, drag them to your cells and configure, configure some output points!

To do this, you need to remove all data methods from the view controller for this to work. Yes, you understood that correctly.

+3
source

You can use this beautiful view of the form that I found. Its ease of use. https://github.com/redant-mobile/raformview

0
source

Source: https://habr.com/ru/post/1391010/


All Articles