I have a UITableViewController which contains a UITableView. I try to control the UITableViewController’s view to be only 200px tall. UITableViewController.view.frame=CGRectMake(0, 0, 320, 200), but I always getting the UITableView to be full height, the table didn’t contrainted to 200 px.
How do I control the total height of the UITableView?
I have a UITableViewController which contains a UITableView. I try to control the UITableViewController’s
Share
A
UITableViewControllersviewproperty is aUITableView. You need to change yourUITableViewControllersubclass’s superclass to beUIViewController. I answered a question here that explains how to do this, and explains the problem in more detail.