chenliangloveyou / EasyNavigation

一款超级简单的导航条管理工具。完全自定义导航条。没有UINavigationBar 和 UINavigationItem 这两个类。完全是对UIView的操作。
MIT License
397 stars 94 forks source link

崩溃 #15

Closed ZZKll closed 6 years ago

ZZKll commented 6 years ago

[EasyNavigationView addLeftView:callback:]: unrecognized selector sent to instance 0x7fac1842eaf0

tabbar 其中的一个ViewController 用这个库包含 例如 HomeViewController homeView = [HomeViewController new]; EasyNavigationController homeNav = [[EasyNavigationController alloc]initWithRootViewController:homeView]; self.viewControllers = @[newsNav,liveNav,homeNav,governmentNav,peopleLiveNav];

在ViewController里 调用方法崩溃

chenliangloveyou commented 6 years ago

[EasyNavigationView addLeftView:callback:]: unrecognized selector sent to instance 0x7fac1842eaf0

改成 [self.navigationView addSubview:xxxclickCallback:nil];

ZZKll commented 6 years ago

已改 谢谢 关于 LineView 的设置好像没有效果 例如 [self.navigationView setLineViewHidden:YES]

还是能看到一个小白条 .

chenliangloveyou commented 6 years ago

self.navigationView.lineView.hidden = yes ;

ZZKll commented 6 years ago

ok .谢啦 大佬