Get Selected index of UITableView
NSIndexPath *selectedIndexPath = [tableView indexPathForSelectedRow];
NSIndexPath *selectedIndexPath = [tableView indexPathForSelectedRow];
Use [NSIndexPath indexPathForRow:inSection:] to quickly create an index path. Edit: In Swift 3: let indexPath = IndexPath(row: rowIndex, section: sectionIndex) Swift 5 IndexPath(row: 0, section: 0)