10
I have a problem and I will try to explain the issue:
- I have one main
UIViewController(Whole screen) - I have one secondary
UIViewController(setbounds) I added my secondary view to my
mainViewusing this:[mainController.view addSubview:secondaryController.view];I created a third controller:
modalController, I added it to my secondary controller like this:[secondaryController presentModalViewController:modalController animated:YES];I make calculus based on some events inside of my
modelController.I am able to send messages from my
modalControllerto mysecondaryControllerusing:[[self parentViewController] performSelector : @selector(myMethodInSecondaryController:) withObject : myObject afterDelay : .5];NOTE: "self" corresponds to the
modalControllerI need to pass "myObject" to my
mainController, but i cant make reference to mymainControllerfrom thesecondaryController. I tried this:[[self parentViewController] performSelector : @selector(myMethodInMainController:) withObject:myObject afterDelay : .5];NOTE: "self" corresponds to the
secondaryControllerbut it doesn't work, i have access to my mainController's view using :
self.view.superviewNOTE: "self" is my
secondaryController
but no to its controller.