How to create a UITableView similar to iOS Contacts?

I would like to create a table that is edited in the same way as the Contact fields. They seem to be grouped together using UITableViewCellStyleValue2, but the cell style changes when it becomes editable into something that I cannot recreate, which has a vertical line between textField and detailTextField, and detailTextField is editable. Is this cell a custom UITableViewCell or is there some configuration for this?

Basically, I am trying to create a table for editing address information in the same way as this application.

+8
ios iphone uitableview
source share
2 answers

There is an example iOS app developer called iPhoneCoreDataRecipes that shows how they do something like this.

In the file: IngredientDetailViewController.m when loading the table data they have the line:

[[NSBundle mainBundle] loadNibNamed:@"EditingTableViewCell" owner:self options:nil]; 

Looking at the EditingTableViewCell.xib file, you will see that they have a table view cell with a label and a text field, IngredientDetailViewController passes the values ​​for the label and text fields.

Using this trick, you can easily customize TableViewCell to your liking. :-)

+8
source share

I think you are right that this is a custom cell at this moment, or at least they added some elements to it.

0
source share

All Articles