Ios SWRevealViewController带有Swift中带有脚本标识符的脚本,不知道如何操作

Ios SWRevealViewController带有Swift中带有脚本标识符的脚本,不知道如何操作,ios,Ios,SWRevealViewController如何在swift not segue中使用序列图像板标识符实现序列图像板请帮助我 UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardNibName" bundle:nil]; TempViewController *myVC = (TempViewController *)[storyboard instantiateViewControllerWithIde

SWRevealViewController如何在swift not segue中使用序列图像板标识符实现序列图像板请帮助我

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardNibName" bundle:nil];
TempViewController *myVC = (TempViewController *)[storyboard instantiateViewControllerWithIdentifier:@"identifier"];
UIViewController *frontViewController = myVC;
RearViewController *rearViewController = [[RearViewController alloc] init];
UINavigationController *frontNavigationController = [[UINavigationController alloc] initWithRootViewController:frontViewController];
UINavigationController *rearNavigationController = [[UINavigationController alloc] initWithRootViewController:rearViewController];
SWRevealViewController *revealController = [[SWRevealViewController alloc] initWithRearViewController:rearNavigationController frontViewController:frontNavigationController];
revealController.delegate = self;
self.viewController = revealController;
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
斯威夫特:

 let storyboard = UIStoryboard(name: "Main", bundle: nil)
 let vc = storyboard.instantiateViewControllerWithIdentifier("TARGET_VIEW_CONTROLLER") as! UIViewController
 var rvc:SWRevealViewController = self.revealViewController() as SWRevealViewController
 rvc.pushFrontViewController(vc, animated: true)

感谢Nishant Gupta请您能用SwiftName代码执行此操作吗?我在AppDelegate中已经过了使用方法中的选项完成启动,但它显示错误“类型为'AppDelegate'的值没有成员'Revalviewcontroller'”。此错误来自dis行变量rvc:swRevalviewcontroller=self.Revalviewcontroller()as SWRevealViewController