iOS 7 Custom TableView Is Under TabBar

后端 未结 16 1644
萌比男神i
萌比男神i 2020-12-13 04:31

Im trying port my app to iOS7, but my custom TableViewController is showing the last row (cell) under the TabBar :(

Im searchi

相关标签:
16条回答
  • 2020-12-13 05:31

    My friends, I cannot tell you how badly I struggled from this. Not a single re-configuration of Story Board never helped me. The issue was exactly like in Original Post, I've managed to fix it using:

    for swift 3

    self.edgesForExtendedLayout = []
    

    for objective-c

    self.edgesForExtendedLayout = NO;
    
    0 讨论(0)
  • 2020-12-13 05:31

    I've got the same problem. One solution to it is to make the ToolBar not Translucent. Here's how to do it:

    • First select the tool bar from the document viewer like here
    • Then uncheck Translucent like here

    Hope this helps.

    Thanks.

    0 讨论(0)
  • 2020-12-13 05:32

    2 lines in viewDidLoad and that's it !

    self.edgesForExtendedLayout = UIRectEdgeAll;
    self.tableview.contentInset = UIEdgeInsetsMake(0.0f, 0.0f, CGRectGetHeight(self.tabBarController.tabBar.frame), 0.0f);
    
    0 讨论(0)
  • 2020-12-13 05:34

    I solved my problem now, changing my BaseTableViewController to inherit from UIViewController to UITableViewController.

    But using a TableView inside a UIViewController is not solved :(

    Thanks.

    0 讨论(0)
提交回复
热议问题