ios swiftでPPRevealsideViewControlを使用
2270 ワード
pod 'PPRevealSideViewController'
pod install
var theRevealSideViewController: PPRevealSideViewController!
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
theRevealSideViewController = PPRevealSideViewController(rootViewController: self.window?.rootViewController);
self.window?.rootViewController = theRevealSideViewController;
return true
}
self.aboutViewController = AboutViewController(nibName: "AboutViewController", bundle: nil)
@IBAction func aboutBtnClicked(sender: AnyObject){
NSLog(" about ")
self.revealSideViewController.pushViewController(self.aboutViewController, onDirection: PPRevealSideDirection.Right, animated: true)
}