I've looked at many solutions for this problem on here, but none of them seem to work for me. Here is some of my code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
scrollOffset = scrollView.contentOffset;
[expansionTableView reloadData];
// contentSize has now been changed
[scrollView setContentOffset:scrollOffset animated:YES];
Even though I can see from NSLog statements that the contentOffset has been set correctly at this point, it doesn't display according to the contentOffset. It jumps somewhere else. Why is this happening and how do I fix it?