As you see in the tile I try to share a variable between two views (the id of the selected object).
How can I do?
Here is my code for put on my other view :
EditProd *edit = [[EditProd alloc] initWithNibName:@"EditProd" bundle:[NSBundle mainBundle]];
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:edit animated:YES];
[edit release];
And which code I need in my other view to get this variable?
EditProd should have a public property e.g.
Then just change it from view1 e.g.