When modally presenting, or pushing, an interface controller we can specify the context
parameter to pass some data to the new controller as follows.
maybe there is some other ways but i prefer to use pushControllerWithName: method.
Root controller:
- (IBAction)GoToChildControllerButton {
[self pushControllerWithName:@"TableInterfaceController" context:@"pass some data to child controller here..."];
}
Child controller:
- (IBAction)BackToRootControllerButton {
[self pushControllerWithName:@"TableInterfaceController" context:@"pass some data back to root controller here..."];
}