Skip to content

Instantly share code, notes, and snippets.

@lvjian700
Created May 19, 2013 09:34
Show Gist options
  • Select an option

  • Save lvjian700/5607196 to your computer and use it in GitHub Desktop.

Select an option

Save lvjian700/5607196 to your computer and use it in GitHub Desktop.
Setting UITableView selected row
NSIndexPath *indexSelected = [NSIndexPath indexPathForRow:index inSection:0];
[self tableView: self.taskTable willSelectRowAtIndexPath:indexSelected];
[self.taskTable selectRowAtIndexPath:indexSelected
animated:YES
scrollPosition:UITableViewScrollPositionMiddle];
[self tableView: self.taskTable didSelectRowAtIndexPath:indexSelected];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment