How to create a static delegate from main-viewcontroller?
Posted
by
geforce
on Stack Overflow
See other posts from Stack Overflow
or by geforce
Published on 2011-02-23T22:47:54Z
Indexed on
2011/02/23
23:25 UTC
Read the original article
Hit count: 223
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..
© Stack Overflow or respective owner