SideMenu
SideMenu copied to clipboard
Not get Navigation controller for push another view controller from any other view controller. .
I have multiple storyboard => by clicking on sidemenu item open a new screen same as your provided demo =>than after on same viewController click on button I have to navigate to next screen but not getting navigation controller so I'm not able to Push another view controller.
var KFirstOriginate : String {
get {
return "Main"
}
}
var KSecondOriginate : String {
get {
return "PK"
}
}
struct Main {
static let FirstOriginate = UIStoryboard(name: KFirstOriginate, bundle: nil)
static let SecondOriginate = UIStoryboard(name: KSecondOriginate, bundle: nil)
}
@IBAction func btnPush(_ sender: Any) {
let viewController = Main.SecondOriginate.instantiateViewController(withIdentifier: "FeedbackVC") as! FeedbackVC
navigationController?.pushViewController(viewController, animated: true)
}
Hello, did you get any solution?
I have done
No i did not get any solution. Please share with me your code.
Hello, did you get any solution?
I have done
i did not get any solution. Please share with me your code.
I'm not 100% sure what's the problem, but in most cases, you may need to create the navigation controlelr manually.