No matter what I do, I cannot get my tableview to scroll to the very bottom when a user gets to my viewcontroller. I'm currently using the following code to try and accomplish this:
ViewController.m
-(void)viewDidAppear {
if (self.tableView.contentSize.height > self.tableView.frame.size.height)
{
CGPoint offset = CGPointMake(0, self.tableView.contentSize.height - self.tableView.frame.size.height);
[self.tableView setContentOffset:offset animated:YES];
}
}
I've also tried pasting this in viewDidLoad, as well as viewWillAppear, and no dice whatsoever. And yes, I am using autolayout. Any ideas?