I want to have selected index for UITableView. I have written following code:
UITableView
NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0];
Get current selected row. May be helpful if you have only one section.
- (NSUInteger)currentSellectedRowIndex { NSIndexPath *selectedIndexPath = [self.tableView indexPathForSelectedRow]; if (selectedIndexPath) { return selectedIndexPath.row; } else { return NSNotFound; } }