iOS 7 Custom TableView Is Under TabBar

后端 未结 16 1650
萌比男神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:21

    maybe is not a right answer, also for that reason I post this answer so you can tell me if this answer could be a possible solution.

    In my case, I like the translucent effect, so I have added a footer in the table and I have modified the scrollIndicators.

    - (void)viewDidLoad
    {
        // Do any additional setup after loading the view.
        [super viewDidLoad];
        UIView *footer = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.agendaItemsTable.frame.size.width, self.tabBarController.tabBar.frame.size.height)];
        self.agendaItemsTable.tableFooterView = footer;
        self.agendaItemsTable.scrollIndicatorInsets = UIEdgeInsetsMake(0, 0, self.tabBarController.tabBar.frame.size.height, 0);
    
    }
    

    What do you think?

提交回复
热议问题