property 'row' not found on object of type 'NSIndexPath *' in iOS tableview property 'row' not found on object of type 'NSIndexPath *' in iOS tableview sqlite sqlite

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


Just @import UIKit; in your .h file and you'll be fine.


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 NSDictionarys instead of Task objects.

So, at least in my case the error was misleading, if nothing else is working maybe check the type assignment.