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

Adding SSASideMenu to an existing Project #49

Closed
NuelNikhil opened this issue Apr 6, 2016 · 1 comment
Closed

Adding SSASideMenu to an existing Project #49

NuelNikhil opened this issue Apr 6, 2016 · 1 comment

Comments

@NuelNikhil
Copy link

I have added the SSASideMenu to my project like the way it has shown in the example but when I run my project there a screen and an ash colour in the screen .. nothing else. what went wrong and How can I add it to my existing project???

@NuelNikhil
Copy link
Author

Managed to make it work properly. what I did ...

Make you AppDelegate to conform to SSASideMenuDelegate
class AppDelegate: UIResponder, UIApplicationDelegate , ## SSASideMenuDelegate

then change your code inside AppDelegate to

 func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: 
AnyObject]?) -> Bool {

window = UIWindow(frame: UIScreen.mainScreen().bounds)

        //MARK : Setup SSASideMenu

        let sideMenu = SSASideMenu(contentViewController: UINavigationController(rootViewController: FirstViewController()), leftMenuViewController: LeftMenuViewController(), rightMenuViewController: RightMenuViewController())
        sideMenu.backgroundImage = UIImage(named: "Background.jpg")
        sideMenu.configure(SSASideMenu.MenuViewEffect(fade: true, scale: true, scaleBackground: false))
        sideMenu.configure(SSASideMenu.ContentViewEffect(alpha: 1.0, scale: 0.7))
        sideMenu.configure(SSASideMenu.ContentViewShadow(enabled: true, color: UIColor.blackColor(), opacity: 0.6, radius: 6.0))
        sideMenu.delegate = self

        window?.rootViewController = sideMenu
        window?.makeKeyAndVisible()
}

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

1 participant