I have a TabBarController, one of the tabs of which contains a sub view which is a navigationController. I am then loading into the navigation controller a view which inherits form UITableViewController.
My problem is thta for some reason the table view starts behing the navigation controller, not the top of the screen but about half way down the navigation bar, hence the top of the first cell in the table view is cut off.
Can anyone suggest how to move the UITableViewController down?
Fix it programmatically:
- (void)viewDidLoad { UIEdgeInsets inset = UIEdgeInsetsMake(20, 0, 0, 0); self.tableView.contentInset = inset; }
1.4m articles
1.4m replys
5 comments
57.0k users