I have a UITableView
with cells
that are dynamically updated. Everything works fine apart from when tableview.reload
is called (see below) to refresh the cells
in the table I would like the table to scroll to the bottom to show the new entries.
- (void)reloadTable:(NSNotification *)notification {
NSLog(@"RELOAD TABLE ...");
[customTableView reloadData];
// Scroll to bottom of UITable here ....
}
I was planning to use scrollToRowAtIndexPath:atScrollPosition:animated:
but then noticed that I don't have access to an indexPath
.
Does anyone know how to do this, or of a delegate
callback that I could use?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…