-
Notifications
You must be signed in to change notification settings - Fork 16
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
mainViewController is nil #41
Comments
I figure out that the problem is only happen when the segue is push not set. |
Hi, the code should be like this (if you don't want a right view controller, pass nil):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello ,
I am showing the mainVC progmatically after performing some code in the appdelegate file,
The problem that i don't have any initial view controller in the storyboard.
the problem here
self.contentView?.addSubview(self.mainViewController!.view)
the mainViewController is nil, i try to set it progmatically in my "MainVC" that extends
PBRevealViewController
but it seems that theloadView()
in thePBRevealViewController
start first.The text was updated successfully, but these errors were encountered: