How do I build the following view?
I want to build a form using a standard UITableViewController, but I need to have an image that spans the first two rows. Rows have text in them (not pictured).
One way I’ve considered is to have the Image and first two rows actually be one row with another UITableView embedded inside it, with scrolling disabled.
But I’d really like to do something with indenting.
UITableView
+-----+---------------+
| | | <---+ Row 0
UIImageView +---> | +---------------+
| | | <---+ Row 1
+-----+---------------+
| | <---+ Row 2
+---------------------+
| |
+---------------------+
| |
+---------------------+
| |
+----------------
|
+-----------
|
+------
| Etc..
+--
|
How can I accomplish this, using the fewest widgets / least amount of code (for iOS 4+)?
I ended up putting a
UIImageViewand a nestedUITableViewinside the row 0UITableViewCell. The nestedUITableViewhas scrolling disabled and provides one group with two rows. Then I just had to fudge the frame a bit.