dogo / AKSideMenu

Beautiful iOS side menu library with parallax effect. Written in Swift
MIT License
281 stars 50 forks source link

Image on BackgroundImageView is not showing up #44

Closed PaulEhrhardt closed 5 years ago

PaulEhrhardt commented 5 years ago
Include the following:
Reproduction Steps
  1. Setup AKSidemenu
  2. Assign an image to the backgroundImage property
  3. Background image does not show up
Expected Result

Image should be visible.

Actual Result
screen shot 2018-09-23 at 12 36 37

Tell us what could be improved:

dogo commented 5 years ago

Thats weird @PaulEhrhardt , seems fine here with storyboard and without. Try to update to 1.4.2

simulator screen shot - iphone x - 2018-09-25 at 21 50 09

PaulEhrhardt commented 5 years ago

Thank you i will do and test it out.

PaulEhrhardt commented 5 years ago

Same issue using https://github.com/dogo/AKSideMenu/releases/tag/1.4.2

My MainViewController derives from AKSideMenu. When i set the background image inside the overridden viewDidLoad it does not show up.

However if i set the backgroundImage property directly on startup in my AppDelegate like in the examples it shows up.

dogo commented 5 years ago

@PaulEhrhardt Try to set the background image on awakeFromNib() like: self.backgroundImage = UIImage(named: "Stars")

PaulEhrhardt commented 5 years ago

Thank you for your help. I do not use Storyboards in my project but i got it running by setting it in the app delegate anyway so i can close this issue now.