I am trying to get a UITableview to go to the top of the page when I reload the table data when I call the following from
- (void)pickerView:(UIPickerView *)pic
If you scroll before reloading and the number of rows decreases, you can have some strange animating behavior. To ensure the scrolling happens after reload, use a method like this:
- (void)reloadTableViewAndScrollToTop:(BOOL)scrollToTop {
[self.tableView reloadData];
if (scrollToTop) {
[self.tableView setContentOffset:CGPointZero animated:YES];
}
}