Created
May 19, 2013 09:34
-
-
Save lvjian700/5607196 to your computer and use it in GitHub Desktop.
Setting UITableView selected row
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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