I'm trying to display my UITableView's content under the status bar upon app launch (it can be achieved now by scrolling).
This is my current result:

But I'd like it to appear like this:

I've set these attributes for the UINavigationController

And I've tried to adjust the insets like so in viewDidLoad:
[self.tableView setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)];
However, it doesn't display as desired.
set the tableView contentInsetAdjustmentBehavior property
tableView.contentInsetAdjustmentBehavior = .never
Add the code in  this method- -viewDidLayoutSubview() 
[self.tableView setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With