I'm not sure I'm following you, but I think I have the same difficulty. In my case, I have to allocate some space for ADBannerView at the top of the screen, so that I add the viewDidLoad method, which I added:
[self.tableView setContentInset:UIEdgeInsetsMake(50,0,0,0)]
these are the UIEdgeInsetsMake values ββ(top, left, bottom, right).
Alternatively the same with Swift:
self.tableView.contentInset = UIEdgeInsetsMake(50, 0, 0, 0)
Swift 4.2:
self.tableView.contentInset = UIEdgeInsets(top: 50, left: 0, bottom: 0, right: 0)
jigzat Jul 07 2018-10-10T00: 00Z
source share