I have NSMutable Array in FirstviewController. I want to copy objects of that array to another NSMUtable Array which is in SecondViewController.
But FirstViewController and SecondViewController are in different tabs (my app’s rootController is a tabBarController )
Note: I know It’s work for [self.navigationController pushViewController:firstViewController animated:YES];
But, how can I do it when viewControllers are in different tabs like in my case.
please give me a help. thanks in advanced.
There are a few ways to do this type of pattern:
There are more design patterns, but these are your best bet for this type of setup. For more info on these, check the Cocoa Fundamentals Guide provided by Apple