Michael M Michael M - 6 months ago 31
Objective-C Question

Shifting UITableView down (UITableViewController)

I am just wondering whether or not it is possible to shift a

UITableView
down the page by, say, maybe 50 pixels. I know this would usually work if I had used a
UIViewController
then added a table view on top, but would I be able to do this and still keep it as
UITableViewController
?

Answer

I had the same problem and the answer above didn't work. This did:

[self.tableView setContentInset:UIEdgeInsetsMake(50,0,0,0)];