I have a table, when I select a row I execute this command:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
InfoClienteViewController *infoViewController = [[InfoClienteViewController alloc] init];
[self.navigationController pushViewController:infoViewController animated:YES];
[infoViewController setIdt:idt[indexPath.row]];
NSLog(@"You Select -> %zd",idt[indexPath.row]);
}
In my array (idt) I have this values:
- [0] -> 2
- [1] -> 3
- [2] -> 4
So, when I click in the first row on my table (Now the indexPath.row is [0] ), the NSLog was to show the number 2, but return the number 4451524096, why? and how can I solve it?