kukushi / SideMenu

An interactive iOS side menu with rich features.
MIT License
792 stars 123 forks source link

Bug When inherit UINavigationController #31

Closed FerryAWijayanto closed 5 years ago

FerryAWijayanto commented 5 years ago

I try to make sideMenuController have a navigation, but when I try to swipe the menu. navigation controller being pushed down and my navigation title not showing.

kukushi commented 5 years ago

Sorry, I can't figure out how you use side menu. Sample code or detailed description may help.

FerryAWijayanto commented 5 years ago

hey kukushi i receive your email, I give you my code how I use sideMenu.

I make a function to generate a navigation controller like this.

func generateNavController(with rootViewController: UIViewController, title: String, image: UIImage) -> UIViewController {

    let navController = StatusbarNavController(rootViewController: rootViewController)

    navController.tabBarItem.title = title

    navController.tabBarItem.image = image

    return navController

}

this is my status bar class

class StatusbarNavController: UINavigationController {

override var preferredStatusBarStyle: UIStatusBarStyle {

    return .lightContent

}

}

and I passed in my function like this

generateNavController(with: SlideMenuController(mainViewController: ChatController(), leftMenuViewController: MenuController()), title: "Chat", image: imageLiteral(resourceName: "icons8-chat-50"))

and when I try to swipe the menu the navigation being push down.


From: Xing He notifications@github.com Sent: Thursday, January 31, 2019 1:54 PM To: kukushi/SideMenu Cc: FerryAWijayanto; Author Subject: Re: [kukushi/SideMenu] Bug When inherit UINavigationController (#31)

Sorry, I can't figure out how you use side menu. Sample code or detailed description may help.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/kukushi/SideMenu/issues/31#issuecomment-459236644, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALdYWmE2AWTXwfcPXLmQNcYi_S0QWZwlks5vIpMUgaJpZM4aafjU.

kukushi commented 5 years ago

I will suggest you using side menu controller as the top most view controller