Category Archives: Obj C
A month into the job and I realized how awesome obj c and i now see why apple gets so many developers. You get a huge amount of flexibility working with views and view controllers, not to mention arrays.
self.navigationcontroller.viewcontrollers gives you the whole list of viewcontrollers you have pushed on to the navigation controller in an array. You can get data pushed on to each page by navigating to
[self.navigationcontroller.viewcontrollers objectAtIndex:index] where index is the index of the pushed view controller. There is no need for a shared datastore or a static variable accessible from anywhere in the code. Dynamic typing of arrays to such an extend where you can add anything in the whole coding-verse as an element in the NSArray object;
more on it soon :P
And yes, i put a semicolon at the end..