Adding UITableView with TableViewController to a UIViewController
Hey how's it going,
Trying to get these two things to play nice together. I have a UIViewController associated with a tab Bar View. BTW I am using Interface Builder!
I also have a UITableViewController and class inside a separate nib. If I make this tab on the tab Bar use a TableViewController instead of the ViewController, the TableView loads fine and parses the XML like it should. Only I want to have a static image header, and if I have it as part of the TableViewController, it scrolls with the table.
I would like to put a UITableView inside the UIViewController and have it function the same. I created a subclass of UITableViewController and added an instance inside the library of this MainWindow nib (where the tab bar and all the other views are). Associated the right class with it and also associated the ViewController class with the tab bar view.
In Interface Builder I connected the UITableView inside the view of the ViewController to the UITableViewController and also connected the delegate and dataSource to the UITableViewController as well. It compiles fine and everything but the UITableView is blank, and it doesn't even go through my code inside the TableViewController class.
Do I need to do something inside the UIViewController class that the TableView is inside of to tell it to go through the TableViewController class and populate the TableView?
|