I would like some opinion, example and code on how everyone dose this..
So far I have been getting on fine using protocols and delegates for passing information back up through the navigaion controller from view to view.
However just recently I have had to pass some data across multiple views on the controller stack and just cannot figure out how to achive this with delegates and protocols.. I have asked some other question that have helped me under stand alot about what im trying to do but I want to come up with a application wide solution instead of several hashed together ideas that only just do what I need..
Basicly what I’m looking to do is is this
Navigation stack
- First View
-- second View
--- Third View - current view.
Pass data from Third to first view is the goal. I know how to pop to the first view controller.. I just don’t know how to get information to it over that distance… The majour thing holding me back atm is that I cannot declare the delegate in the First View for the Third View delegate protocol with out the application falling over.
This how to do it if your delegate is defined in the Third View,
In your third view:
make sure your firstviewcontroller conforms to the protocol
and import third view in first view.h