David542
David542

Reputation: 110592

Convert html table to iPhone table

I have the following table in html:

Soemthing

What iOS element would I use to best represent the above? I know there's the UITableViewController, but how would I go about making it with multiple 'columns' and 'cells' ?

Upvotes: 0

Views: 105

Answers (1)

TMob
TMob

Reputation: 1278

It would be just one UITableViewCell, which you then fill up with a label and 3 textfields / other UI-elements that you prefer. You can create this directly from the storyboard. Just set up a UITableView and add a Cell to it, which you then model into the layout, all cells of the table should have.

In the storyboard it would look something like this: enter image description here

You can then create a custom cell, which is just a class of type UITableViewCell, and declare your IBoutlets there and connect it to the storyboard.

Upvotes: 1

Related Questions