swift中的菜单实现

时间:2016-05-08 11:29:17

标签: ios

我正在尝试使用swift在IOS中实现菜单功能,我正在尝试实现 SWRevealViewController ,在演示中他们在我的项目中使用segue我正在使用stroyBoard和Identifier如何要做到这一点请帮助

revealViewController对象我无法访问我的Appdelegate。

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

storyBoard = UIStoryboard(name: "Main", bundle: nil)
mainVC =  storyBoard?.instantiateViewControllerWithIdentifier("ViewController") as? ViewController

var navController = UINavigationController(rootViewController: mainVC!)
navController.setViewControllers([mainVC!], animated:true)

///// **** PROBLEM Here........

[self.revealViewController setFrontViewController:navController];
[self.revealViewController setFrontViewPosition: FrontViewPositionLeft animated: YES];
////////
return true

}

0 个答案:

没有答案