I have a UIViewController, with a UITableView that takes half the screen.
I also have subclassed UITableViewController, but I can not understand how would I associate the sub-class UITableViewController with my table? "post-text" itemprop = "text">
It is not clear from your question that why are you trying to create a UITableViewController and a UIViewController in this case. Do you have 2 different tables that you are trying to control? Or are you trying to do something special to keep 2 different controllers for the management of different parts of a scene / subview hierarchy? Usually, for a UITableViewController, the table is created automatically or within the NIB file from the UITableViewController documentation:
If a Nib file is specified by initWithNibName: Bundle : Method (which is declared by the superclass UIViewController), UITableViewController loads the table view stored in the NAB file. Otherwise, it creates a well-configured UITableView object with the correct dimension and autoresizm mask. You can access this view through the Table view property.
So you will not usually need to associate your subclassed UITableViewController with your table because it has been taken care of for you.
Comments
Post a Comment