Empty white space above UITableView inside a UIView

前端 未结 8 1086
梦毁少年i
梦毁少年i 2020-12-13 13:53

I\'m trying to position a TableView inside my ViewController view but leaving a 44 height gap between the bottom of the navigation bar and the top of the table. I then wante

8条回答
  •  Happy的楠姐
    2020-12-13 14:21

    Just add this in you ViewDidLoad method

    self.automaticallyAdjustsScrollViewInsets = NO;
    

提交回复
热议问题