Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidAppear:(BOOL)animated {
- [super viewDidAppear:animated];
- CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;
- CGSize navigationBarSize = self.navigationController.navigationBar.frame.size;
- CGSize tableViewContentSize = self.tableView.contentSize;
- CGSize tabBarSize = self.tabBarController.tabBar.frame.size;
- UIView *tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, tableViewContentSize.width, self.tableView.frame.size.height - statusBarSize.height - navigationBarSize.height - tableViewContentSize.height - tabBarSize.height)];
- tableFooterView.backgroundColor = [UIColor redColor];
- self.tableView.tableFooterView = tableFooterView;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement