Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to View Controller #3

Open
Leor8a opened this issue Sep 7, 2018 · 3 comments
Open

Access to View Controller #3

Leor8a opened this issue Sep 7, 2018 · 3 comments

Comments

@Leor8a
Copy link

Leor8a commented Sep 7, 2018

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.

@crgg
Copy link

crgg commented Oct 3, 2019

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

@sashcomua
Copy link

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

@sashcomua
Copy link

sashcomua commented Mar 20, 2021

replace ==
"let mainVC = UIViewController()"

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

it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants