property 'row' not found on object of type 'NSIndexPath *' in iOS tableview
Try this while debugging we need to send int value
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ int index=indexPath.row; self.recordIdToEdit = [[deviceNameArray objectAtIndex:index]]; NSLog(@"Item selected..%d", self.recordIdToEdit); [self performSegueWithIdentifier:@"DetailsViewController" sender:nil]; }
For future reference I just got this error and it had nothing to do with indexPath
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {//... Task *task = [self.tasks objectAtIndex:indexPath.row];//... return cell;}
My error was that self.tasks
was populated with NSDictionary
s instead of Task objects.
So, at least in my case the error was misleading, if nothing else is working maybe check the type assignment.