SSA111 / SSASideMenu

A Swift implementation of RESideMenu
MIT License
598 stars 96 forks source link

ViewController disappear under the NavigationBar in iOS 9 #21

Closed LuaiKalkatawi closed 8 years ago

LuaiKalkatawi commented 8 years ago

I have an issue in iOS 9 while it is working fine in iOS 8. Part of the top view becomes under the NavigationBar. I have three views one of them is working fine while the other two part of the top view start under the NavigationBar. Please where would be the issue?

    let storyboard = UIStoryboard(name: "Basket", bundle: nil)
    let vc = storyboard.instantiateViewControllerWithIdentifier("BasketViewController") as! UINavigationController

    sideMenuViewController?.contentViewController = vc
    sideMenuViewController?.hideMenuViewController()
LuaiKalkatawi commented 8 years ago

Fixed the issue by writing the code in the mainView

self.edgesForExtendedLayout = UIRectEdge.None