Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Landscape mode not filled with color #20

Closed
trujamal opened this issue Jun 22, 2016 · 2 comments
Closed

Landscape mode not filled with color #20

trujamal opened this issue Jun 22, 2016 · 2 comments

Comments

@trujamal
Copy link

White Background
https://gyazo.com/2369a4adc84390dc33198f2893f4b161

Black Background
https://gyazo.com/528e2317cadc7650c5fd191f614b467c

What I noticed while testing this framework was that, if the app was ever in landscape mode the tableview would show the black background, so I went to original and saw the same issue in the demo project also; in terms of the two backgrounds not blending together, do you know of a fix for it?

override public init(frame: CGRect) {
    super.init(frame: frame)
    self.titleFont           = UIFont(name: "HelveticaNeue-Light", size: 28)
    self.titleAlignment      = .Left
    self.height              = 400 // updated to good-fit height for iPhone 4s
    self.textColor           = Color.mediumBlackColor
    self.highlightTextColor  = Color.mediumGlayColor
    self.menuBackgroundColor = Color.mediumWhiteColor
    self.bounceOffset        = 0
    self.velocityTreshold    = 1000
    self.panGestureEnable    = true
    self.highlighedIndex     = 1
}
@trujamal
Copy link
Author

trujamal commented Jun 22, 2016

Fixed it by adding to the UIViewController color also.

https://gyazo.com/25384ad8b1c67ed13a821c894a57adbb

   let menuController = UIViewController()
    menuController.view = self
    menuController.view.backgroundColor = Color.mediumWhiteColor
    UIApplication.sharedApplication().delegate?.window??.rootViewController = menuController
    UIApplication.sharedApplication().delegate?.window??.addSubview(contentController!.view)

@alexbartisro
Copy link

alexbartisro commented Jan 17, 2017

@VeveCorp This still reproduces on latest version from Cocoapods

img_3964

Edit: iOS 10, IPhone 6S

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

No branches or pull requests

2 participants