0

I am hoping that it is possible to create static table with out using UITableViewController, but I haven't found the answer yet.

The reason I need to use a normal UIViewController is that I have items above where I need the table to start. Such as custom buttons, status indicator, images, and a toolbar. Here is an image so you can see what I am talking about.

enter image description here

I have multiple form fields and other things in each custom cell. Any help is appreciated.

mcphersonjr
  • 733
  • 12
  • 35

1 Answers1

3

You can embed a UITableViewController into your UIViewController as discussed here using embed segue.

Community
  • 1
  • 1
Timothy Moose
  • 9,895
  • 3
  • 33
  • 44
  • I see your method there, but in this case wouldn't it be the same to just use instantiateViewController? – mcphersonjr Oct 16 '13 at 20:51
  • 1
    More or less. But the embed segue sets up the view and view controller containment relationships for you and you can visually see how things are wired together in the storyboard. – Timothy Moose Oct 16 '13 at 21:04
  • @Cedric If you manually instantiate the view controller, then you have to do the `addChildViewController` and `didMoveToParentViewController` calls, too. The embed segue (iOS6 and later, only) does all of that for you. – Rob Oct 16 '13 at 21:56