I have a view that contains a UITableView
and a UILabel
which works perfectly as far as I can tell. I really don't want to manage the UIView
and UITableView
with the same controller as the UITableViewController
handles a lot of housekeeping and according to the documentation:
If the view to be managed is a composite view in which a table view is one of multiple subviews, you must use a custom subclass of UIViewController to manage the table view (and other views). Do not use a UITableViewController object because this controller class sizes the table view to fill the screen between the navigation bar and the tab bar (if either are present).
Why does Apple warn against using it and what will happen if I ignore this warning?
Update: Originally I quoted the following from the Apple Documentation:
You should not use view controllers to manage views that fill only a part of their window—that is, only part of the area defined by the application content rectangle. If you want to have an interface composed of several smaller views, embed them all in a single root view and manage that view with your view controller.
While this issue is probably related to why UITableViewController
was designed to be fullscreen, it isn't exactly the same issue.