Ios 在SWRevealViewController中将特定的ViewController设置为frontViewController
我正在做一个项目,在这个项目中,我实现了Ios 在SWRevealViewController中将特定的ViewController设置为frontViewController,ios,swift,uiviewcontroller,storyboard,swrevealviewcontroller,Ios,Swift,Uiviewcontroller,Storyboard,Swrevealviewcontroller,我正在做一个项目,在这个项目中,我实现了**SWRevealViewController**以实现滑出菜单&现在我得到了以下场景- 我的故事板中已经有一个视图控制器,它的类设置为SWRevealViewController,但它没有通过任何方式与我的CreateNotificationVC相互连接 1) CreateNotificationVC嵌入导航控制器CreateNotificationNVC 2) 我有一个TableViewController,我想成为我的RrealVC 故事板ID-
**SWRevealViewController**
以实现滑出菜单&现在我得到了以下场景-
我的故事板中已经有一个视图控制器,它的类设置为SWRevealViewController
,但它没有通过任何方式与我的CreateNotificationVC
相互连接
1) CreateNotificationVC嵌入导航控制器CreateNotificationNVC
2) 我有一个TableViewController,我想成为我的RrealVC
故事板ID-
CreateNotificationNVC-“createNtfctnNVC”
rearTableViewController-“rearTVC”
场景-
我希望CreateNotificationVC在用户移动到此VC时充当frontViewController,并实现SWRevealViewController的所有类型的功能
编码到现在为止-
在我的CreateNotificationVC中-
let revealView = self.storyboard?.instantiateViewControllerWithIdentifier("RevealVC") as! SWRevealViewController //Here I am instantiating my already present RevealViewController in storyboard
let nvc = self.storyboard?.instantiateViewControllerWithIdentifier("createNtfctnNVC") as! createNtfctnNVC//createNtfctnNVC is the storyBoardId of Nav Controller in which CreateNotificationVC is embedded
let rvc = self.storyboard?.instantiateViewControllerWithIdentifier("rearTVC") as! SlideMenuTVC//Here I am instantiating the TblViewCntrllr which acts as rearVC of my already present RevealViewController
revealView.setFrontViewController(nvc, animated: true)
revealView.pushFrontViewController(nvc, animated: true)
revealView.setRearViewController(rvc, animated: true)
self.view.addGestureRecognizer(revealView.panGestureRecognizer())
问题-从CreateNotificationVC中的任何按钮滑动或切换不会导致幻灯片菜单的显示
请帮助这一点,因为在swift中找不到此第三方的太多作品
您能展示一下您的产品吗storyboard@Anbu.Karthik是的,我刚刚更新了我的问题。请看一看。现在告诉兄弟,你想要哪个vcset@Anbu.Karthik右下角的createNotificationVC嵌入到createNotificationVC中,其余的在我的qstn中。所有细节。但是SWL在自定义序列中工作,但是在该类上没有更多的NSobject类。您可以显示您的storyboard@Anbu.Karthik是的,我刚刚更新了我的问题。请看一看。现在告诉兄弟,你想要哪个vcset@Anbu.Karthik右下角的createNotificationVC嵌入到createNotificationVC中,其余的在我的qstn中。所有细节。但SWL在自定义segue中工作,但在该类上没有更多的NSobject类