How do I make my iOS7 UITableViewController NOT appear under the top status bar?

前端 未结 13 2057
旧巷少年郎
旧巷少年郎 2020-12-13 14:04

My root controller is a TabBarController (tabbed application). One of the tabs, is a UITableViewController. When I switch to that and scroll through the items, they show up

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

    I added the following to viewWillAppear

    self.tableView.contentInset = UIEdgeInsetsMake(22, 0, 0, 0);
    

提交回复
热议问题