Let's say I declare an NSMutableArray in the class file foo.h. Then in the viewDidLoad method in foo.m I populate the array. Inside foo.m I can add, delete, or modify array elements.
Then let's say the following code executes inside foo.m
[self.navigationController pushViewController:bar animated:YES];
This will switch the view and program execution will continue inside bar.m. How can I do all the things to the array in bar.m that I was able to do in foo.m?