iOS 7 UITableView: How to remove space between navigation bar and first cell

前端 未结 15 2351
Happy的楠姐
Happy的楠姐 2020-12-04 07:15

Description of the problem: with iOS 7 in grouped UITableView there is a gap between the top of the table view and the first cell.

The strange part is th

15条回答
  •  失恋的感觉
    2020-12-04 07:55

    For me this didn't work

    self.automaticallyAdjustsScrollViewInsets = NO;

    This only caused the table view to sit under the NavigationBar.

    What worked for me was to go into my storyboard, and resize my tableView. It seems my tableView had a 20px gap at the top to allow for the statusBar. I scaled it and everything lined up perfectly.

提交回复
热议问题