Can I pass the data from table to other table via NSObject
?
Example:
First table send data
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
NSIndexPath *path = [self.tableView indexPathForSelectedRow];
Data *g = [[Data alloc]init];
[g setSelection1:(int)path.row];
}
NSLog
test selecttion1 value = path.row;
When I use second table I import the data and alloc it but my value in selection1 is lost.
It is always 0;