I would like to pass some variables from my first controller:
float user_distance;
UIImage *user;
float user_battery;
NSString *user_name;
To a second controller. The connection between the two is made by the function:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
in this manner:
UserViewController *secondViewController = [[UserViewController alloc] initWithNibName:@"UserViewController" bundle:nil];
[self.navigationController pushViewController:secondViewController animated:YES];
How is it possible to recover the values in from this function?
Thanks in advance!