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

Getting black screen of main controller #131

Closed
bhavuk-webkul opened this issue Nov 28, 2018 · 7 comments
Closed

Getting black screen of main controller #131

bhavuk-webkul opened this issue Nov 28, 2018 · 7 comments

Comments

@bhavuk-webkul
Copy link

Getting black screen of main controller
http://prntscr.com/lnwph5

@snc001
Copy link

snc001 commented Nov 28, 2018

Is it because your drawer background is black and is taking all the screen real estate?

meaning if your drawer width that you're using is say... 300/414 but you've made your side drawer view on the storyboard to be 414 and the background is black then thats what it'll be.

@bhavuk-webkul
Copy link
Author

Is it because your drawer background is black and is taking all the screen real estate?

No

meaning if your drawer width that you're using is say... 300/414 but you've made your side drawer view on the storyboard to be 414 and the background is black then thats what it'll be.

both 260 Still not working older i used in many projects its working but now in ios 12 its giving some issue

@bhavuk-webkul
Copy link
Author

any update

@snc001
Copy link

snc001 commented Jan 15, 2019

limit 260 for your drawer and make the mainview normal size.
Else it won't know how to populate

@anonym24
Copy link

anonym24 commented Mar 24, 2019

In my case I can't even open drawer and everything from ui view controller is gone (no items on toolbar, uiviewcontroller is black)

#139

@anonym24
Copy link

anonym24 commented Mar 24, 2019

@snc001 what do you mean?

I have used a default value 200 and what I get is #139

let mainViewController   = ViewController()
let drawerViewController = DrawerViewController()
let drawerController     = KYDrawerController(drawerDirection: .left, drawerWidth: 200)
drawerController.mainViewController = UINavigationController(
    rootViewController: mainViewController
)
drawerController.drawerViewController = drawerViewController 
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = drawerController
window?.makeKeyAndVisible()

@bhavuk-webkul did you solve this issue?

@bhavuk-webkul
Copy link
Author

yes i have solved this issue

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