ios - Jump from controller C to controller A but not show mid page -
in rootviewcontroller, check condition show "a page" or not,
and can enter "c page" form main page.
when user disconnect in c page,
- dismiss c page
- then enter main page
- main page check condition show page
but, don't want show main page, want show page, how should modify code?
page struct :
rootpage ----------- c page | | -------------- page
root.controller
- (void) viewdidappear { if (condition a) { [self persentviewcontroller:"a page"]; } }
c page.controller
- (void) userdisconnect { [self dismissvc]; }
in c page, dismiss function, app show main, present page!
how can show page, without show root page!
thanks,
do follow might you.
(uiviewcontroller* viewcontroller in self.navigationcontroller.viewcontrollers) { if ([viewcontroller iskindofclass:[your_class_name class]] ) { your_class_name *ync = (your_class_name*)viewcontroller; [self.navigationcontroller poptoviewcontroller:ync animated:yes]; return; } }
similarly can dismiss controller also.
Comments
Post a Comment