How would I scroll a UITableView to a specific position with an animation?
Currently I\'m using this code to jump to a position:
//tableController ->
It works fine for me:
-(void) viewDidAppear:(BOOL)animated{
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:n inSection:0];
[self.tableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionTop
animated:YES];
}
To be sure that this is called only once, you can make a verification like this:
if(!isInitialized){
isInitialized = YES;
....
}