I have classes: loginViewController
, helloViewController
, howAreYouViewController
. I also have a class ActionsViewController
.
The first 3 classes are initialized when it is appropriative. I want to call some methods from ActionsViewController
(but it not allocated and instantiated as ViewController).
I use NSNotification
s, but as ActionsViewController
is not show on the screen yet, my notifications are not registered. How to fix it?
UPDATE
for example full scenario is:
loginViewController -> helloViewController (!)-> howAreYouViewController -> if user click some action go to ActionsViewController.
I want to run method '-(void)testMethod' from ActionsViewController in (!) via NSNotifications. In (!) ActionsViewController is not showed and as it I not initalise it.