Open Hashir524 opened 5 years ago
Any Help Would be much Appreciated. :)
@Hashir524 any update on this?
I did it using storyboard, mine wasn't opening too, while the implementation remains the same, on the login screen instead of
let vc = UIStoryboard.init(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "dashboardMenuViewController") as? DashboardMenuViewController self.navigationController?.pushViewController(vc!, animated: true)
I used this and it worked:
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "kyDrawerController") as! KYDrawerController
self.present(nextViewController, animated:true, completion:nil)
I will Explain my Problem alittle bit. So i am not initialising drawerview in Appdelegate. instead i am initialising the drawer view in my loginView Controller and Setting the rootViewController From there. Everything is Working fine. But when i go to the other ViewControllers and comeback to the drawer screen through a segue it won't work from here. I tried to reiniallize the drawerview and set the rootController again. but it also didn't work. i will attach my code
App Delegate File Code.
Login Screen Code. Where i am Iniallizing the drawer view
For the First time it was working. but unfortunatly it is not working when i come from another screen. except LoginScreen. AnyHelp would be appreciated. as i am started in ios.