lvjian700
5/19/2013 - 9:34 AM

Setting UITableView selected row

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];