I'm using JSONModel in my objective c application. I get all data to my JSONModel in a first abBarController. Then I need get this data in other viewController. I'm trying send this data to the others viewControllers like:
First ViewController:
@implementation FirstViewController
...
SecondViewController* infoController = [self.storyboard instantiateViewControllerWithIdentifier:@"secondViewController"];
SecondViewController.model = self.model;//Here send the model with data
[self.navigationController pushViewController:infoController animated:YES];
...
@end
Second ViewController:
@interface SecondViewController :UIViewController{
MyModel *model;
}
@property MyModel *model;
There is a better form to keep this data model instantiated and get the model data from another viewController without send this in a property?