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

前端 未结 15 2362
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:42

    Starting in iOS 7, you automatically get a group header and some space. Compare your app to the Settings app and you'll see. You can work around it by telling the UITableView to set the header height as small as possible. See How to hide first group header.

提交回复
热议问题