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

前端 未结 13 2090
旧巷少年郎
旧巷少年郎 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 14:22

    I was having the same problem when using the SWRevealController.

    Using the comments above and below I was able to get it to work by putting this in the

    -(void)viewWillAppear instead of ViewDidLoad
         self.tableView.contentInset = UIEdgeInsetsMake(20, 0, 0, 0);
    

提交回复
热议问题