Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HelloHW opened this issue Feb 27, 2018 · 5 comments

Comments

@HelloHW
Copy link

HelloHW commented Feb 27, 2018

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

@HelloHW
Copy link
Author

HelloHW commented Feb 28, 2018

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

  • (void)cw_showDefaultDrawerViewController:(UIViewController *)viewController {
    [self cw_showDrawerViewController:viewController animationType:CWDrawerAnimationTypeDefault configuration:nil];
    }里打断点,发现根本不走这个方法。直接报UnRecognized Selector错误

@ChavezChen
Copy link
Owner

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

@HelloHW
Copy link
Author

HelloHW commented Feb 28, 2018 via email

@HelloHW
Copy link
Author

HelloHW commented Mar 1, 2018 via email

@ChavezChen
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants