1

I need to have a sectioned tableview like the following. I need a section to look like shown in the following image.

Home on one side, then on the other column Street, City, state, zipcode. And also Country and state should be on another row.

If someone could show me some sample code or a tutorial to start on this

enter image description here

note : you get the following UI when you are trying to add an address to a contact using your iPhone and sorry i don't have any code, i am clueless where to start.

Illep
  • 16,375
  • 46
  • 171
  • 302
  • Interesting question, I think you could do that by creating your own class that inherits from UIView and then building the sections yourself (similar to the way you build custom table cells). – Pepe Mar 22 '12 at 14:27
  • I don't think it'll be that complicated. Anyway i haven't tried any other approach :S – Illep Mar 22 '12 at 14:29
  • Check out this link may be helpful to you : http://stackoverflow.com/questions/3060501/iphone-form-like-new-contact – Kuldeep Mar 22 '12 at 14:30
  • I think i know to divide a cell to 2 parts. Like `Home Page | URL`. But i don't know to create columns,sub columns and rows as shown in the above image – Illep Mar 22 '12 at 14:37
  • Ok does anyone know how to draw the verticle line between Home page and URL ( ` | ` ) – Illep Mar 22 '12 at 15:00

1 Answers1

2

Get creative. Sometimes something looks like a tableViewCell but it actually isn't one ;-)

enter image description here

Just a bunch of UIViews with lightGray backgroundColor and a width or height of 1. And those are arranged in cells that have different heights.

enter image description here

Matthias Bauch
  • 89,811
  • 20
  • 225
  • 247