How to create a static delegate from main-viewcontroller?
- by geforce
Hi,
hope someone can help me on learning some new stuff about delegates in iOS-programming.
I have a "MainViewController" which is the first VC when the app starts. I´ve a kind of modelselection with different UIImageViews and after choosing one of them, i´m pushing a new VC. I want to handle the modelChoice with a delegate, so all other viewControllers can listen to that and act based on the users choice.
But does that mean that i have to alloc a new instance of that "MainViewController" in every VC? Whats the solution on that? How do i create (i think its called) static delegate?
Would be great to learn that..
Thanks for sharing..