I am implemented MMDrawerController for my application when I clicking in the leftView cell I need to navigate to another view controller as a new controller ,but if I am pushing the view controller its opening in the same left view only its not open as a new vc.
if I given presentviewcontroller. its not navigate to child view of my vc.
please help me .
Try this :
viewcontroller = Where you want to push the Screen..!
Make sure mmDrawerController (object of MMDrawerController() ) has viewControllers , here mmDrawerController means where I initialized it first time . Like in appDelegate or etc..
Check if it is nil or not: print(mmDrawerController.centerViewController)
@IBAction func btnTapped(sender:UIButton) {
let viewcontroller = UIViewController()
mmDrawerController.setCenterView(viewcontroller, withFullCloseAnimation: false, completion: nil)
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.