ios - poptorootviewcontroller and dismiss to mainViewController -


i new ios . question is, have view-controllers navigationcontroller,mainvc, vc1, vc2, vc3, cameravc. in cameravc have done button having action doneclicked. these view-controller pushed in navigationcontroller. vc1 presented, not pushed in nav-controller. doneclicked function implemented poptorootviewcontroller. when click on done button let me vc1 not mainvc. there way can pop view controller vc1 , after automatically dismiss vc1 mainvc.

make mainvc root view controller , in ibaction of done button use code pop mainvc.

[self.navigationcontroller poptorootviewcontrolleranimated:yes]; 

hope helps.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -