Closed cagricolak closed 7 years ago
Hi @cagricolak,
Now the library doesn't support working with UINavigationController
.
You can use workaround to add NavigationController to your application. You should create NavigationViewController
that is an inheritor of MenuItemContentViewController
and then to add actual UINavigationController as a child view controller.
Here is an example:
class NavigationViewController: MenuItemContentViewController {
override func viewDidLoad() {
super.viewDidLoad()
let innerNavigationController = self.storyboard!.instantiateViewController(withIdentifier: "InnerNavigationController") as! UINavigationController
self.addChildViewController(innerNavigationController)
self.view.addSubview(innerNavigationController.view)
}
}
Thank you for your question. Adding support of UITabBarController
and UINavigationController
is planned in coming version. Please, feel free to send us pull requests!
Hello, should I create a NavigationViewController.swift file and copy the code? Then how do I call it from the HostViewController? When will the new version come out? Thanks :)
thanks everyone I fix that
The new version is planned to be out at the end of the next week.
@okonor Probably hasn’t added support NavigationController.
i want to use navigationviewcontroller on my one of view controller instantiate from your api but i getting this error. Could not cast value of type 'Mosyo.EntriesController' to 'UINavigationController'
how can i fix this ?
thanks.