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

前端 未结 13 2079
旧巷少年郎
旧巷少年郎 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条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 14:38

    Have you tried adding something like this to the view controller's viewWillAppear method:

     if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)])
     {
        self.edgesForExtendedLayout = UIRectEdgeNone;
     }
    

提交回复
热议问题