Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. - (void)viewDidAppear:(BOOL)animated {
  2. [super viewDidAppear:animated];
  3.  
  4. CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;
  5. CGSize navigationBarSize = self.navigationController.navigationBar.frame.size;
  6. CGSize tableViewContentSize = self.tableView.contentSize;
  7. CGSize tabBarSize = self.tabBarController.tabBar.frame.size;
  8.  
  9. 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)];
  10. tableFooterView.backgroundColor = [UIColor redColor];
  11. self.tableView.tableFooterView = tableFooterView;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement