im using code as below
[sampleListTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
[sampleListTableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionMiddle];
[sampleListTableView deselectRowAtIndexPath:indexPath animated:YES];
the behaviour i am looking for is that the table view will scroll to the path (which it does) then select the cell momentarily (which it does, if the cell is on the screen)
im thinking that the scroll animation is threaded and the cell is being selected before it appears on the screen, this is confirmed in a way as when i call this code with the cell on the screen it selects and then deselects.
anyone have a workaround? i can do it this way (without the scroll animation) but its not as sweet, very abrupt in fact
[sampleListTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionMiddle animated:NO];
[sampleListTableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionMiddle];
[sampleListTableView deselectRowAtIndexPath:indexPath animated:YES];