iphone - presentModalViewController: how to interact with parent -


showing modal viewcontroller works fine:

uinavigationcontroller *navcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:myview]; [self.navigationcontroller presentmodalviewcontroller:navcontroller animated:yes]; [navcontroller release];     

in modal view, have navigation button switch mainmenu. call [self.navigationcontroller poptoviewcontroller:delegate.viewmainmenu animated:yes]; thats not possible inside modal view. how can interact "parent" call him calls poptoviewcontroller?

thanks lot!

use property parentviewcontroller in modal vc , call [self.parentviewcontroller dismissmodalviewcontrolleranimated: yes];


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -