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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -