Closed NuelNikhil closed 8 years ago
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()
}
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???