ios - Pop navigation controller on another navigation controller -


to navigation controller on modal segue figured i'd try create hierarchy can see in screenshot.

what right way in outlet exit modal (login info view controller)?

i tried different stuff:

- (ibaction)goback:(id)sender {     //none of these works.. (only tried 1 @ time..)     [self.navigationcontroller removefromparentviewcontroller];     [self.navigationcontroller popviewcontrolleranimated:yes];     [self.navigationcontroller.navigationcontroller popviewcontrolleranimated:yes]; } 

enter image description here

enter image description here

at point want dismiss modal viewcontroller, use line within class:

[self dismissviewcontrolleranimated:yes completion:^{ }]; 

so, in case, becomes:

- (ibaction)goback:(id)sender {     [self dismissviewcontrolleranimated:yes completion:^{     }]; } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -