ChavezChen / CWLateralSlide

One line of code to integrate 0 coupling side drawer!一行代码集成0耦合侧滑抽屉!
MIT License
1.28k stars 201 forks source link

- (void)cw_showDefaultDrawerViewController:(UIViewController *)viewController 方法不走 #40

Open HelloHW opened 6 years ago

HelloHW commented 6 years ago

在点击事件里调用- (void)cw_showDefaultDrawerViewController:(UIViewController *)viewController,发现不走改函数。这是什么原因造成的

HelloHW commented 6 years ago

点击事件:-(void)leftClick{ LeftViewController * vc = [[LeftViewController alloc]init]; [self cw_showDefaultDrawerViewController:vc]; } 在// 显示默认抽屉

ChavezChen commented 6 years ago

你好,可以先看看self是不是一个viewController或者NavgationController。。。因为我那个分类是给Viewcontroller写的。。或者能否提供一个测试demo看看情况

HelloHW commented 6 years ago

Hi,self是viewController。我把demo放git上了,路径:https://github.com/HelloHW/SIPC.git

HelloHW commented 6 years ago

您好,请问我这Demo是什么原因导致这样的错误呢?谢谢您了

ChavezChen commented 6 years ago

应该是cocoa pods没有安装好,类似这种解决方式:http://eric-gao.iteye.com/blog/2154131 或者你可以采取手动拖入的方法