drawer-menu-swift icon indicating copy to clipboard operation
drawer-menu-swift copied to clipboard

Access to View Controller

Open Leor8a opened this issue 6 years ago • 3 comments

Hi, I have a little issue, when I implement the drawer and the menu bar. I can't have access to my original ViewController. I try to tap on my subviews and I can't have user Interaction. How can I fix it. I know it's simple but my brain is not working anymore, and it could be nice if you can help me.

Leor8a avatar Sep 07 '18 02:09 Leor8a

Hi must add storyboard id, like this sample let rootController = storyboard.instantiateViewController(withIdentifier: "navigationmain") as! MainNavigationController2 this case is UINavigationController

crgg avatar Oct 03 '19 16:10 crgg

hi! Please explain more clearly, same problem :( I can't have access to my original ViewController

sashcomua avatar Mar 20 '21 01:03 sashcomua

replace == "let mainVC = UIViewController()"

to == let mainVC = UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "ViewController") as! UIViewController

it's working

sashcomua avatar Mar 20 '21 03:03 sashcomua