ios - Resetting the rootViewController on a NavigationController -
i using pkrevealcontroller gives side menu functionality application.
i have uibuttons in side menu , trigger view pushed on navigation stack. however, each view being pushed has button leads navigation view controller.
what correct way make sure each view pushed onto stack become root of navigation stack? except not view controllers need stack.
you can make view controller root view controller of navigation controller example
you can try this.....just replace code in frontview controller didselectrowatindexpath
// [tableview deselectrowatindexpath:indexpath animated:yes]; self.navigationcontroller.viewcontrollers = [nsarray arraywithobject: [[leftdemoviewcontroller alloc]init]];
Comments
Post a Comment