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

可否增加一个黑名单,黑名单里的控制器不会添加WXNavigationBar #8

Open
chinghoi opened this issue Dec 3, 2020 · 3 comments

Comments

@chinghoi
Copy link

chinghoi commented Dec 3, 2020

类似的 issues 参考:这个库的 里的
Q:设置导航栏颜色无效?导航栏颜色总是白色?
A:是否有集成WRNavigationBar?如有,参考其readme调一下它的wr_setBlackList,把TZImagePickerController相关的控制器放到黑名单里,使得不受WRNavigationBar的影响。如果没有集成,可在issues列表里搜一下看看类似的issue参考下,如实在没头绪,可加群提供个能复现该问题的demo,0~2天给你解决。最近发现WRNavigationBar的黑名单会有不生效的情况,临时解决方案大家可参考:wangrui460/WRNavigationBar#145

@alexiscn
Copy link
Owner

alexiscn commented Dec 3, 2020

You can create UINavigationController, and set wx_enableWXNavigationBar to false, then the view controllers in that navigation controller wont apply WXNavigationBar.

But viewControllers in the same UINavigationController will apply WXNavigationBar, you can explicit hide it if you do not need it

override func viewDidLoad() {
    super.viewDidLoad()
    wx_navigationBar.isHidden = true
}

@yuyedaidao
Copy link

我fork了一份代码,加了个白名单的功能,基本满足我们的需求,有需要的可以用用看

pod 'WXNavigationBar', :git => 'https://github.com/yuyedaidao/WXNavigationBar.git'
/// 启动 WXNavigationBar
/// - Parameter enableUINavigationControllers: 启动WXNavigationBar的UINavigationController的名字 注意,传空时默认都启动
public func setup(_ enableUINavigationControllers: Set<String> = []) {
    self.enableUINavigationControllers = enableUINavigationControllers
}

@GodLiek
Copy link

GodLiek commented Nov 22, 2022

我fork了一份代码,加了个白名单的功能,基本满足我们的需求,有需要的可以用用看

pod 'WXNavigationBar', :git => 'https://github.com/yuyedaidao/WXNavigationBar.git'
/// 启动 WXNavigationBar
/// - Parameter enableUINavigationControllers: 启动WXNavigationBar的UINavigationController的名字 注意,传空时默认都启动
public func setup(_ enableUINavigationControllers: Set<String> = []) {
    self.enableUINavigationControllers = enableUINavigationControllers
}

但是你这样修改 让之前的WXNavigationBar.NavBar相关设置全部失效了

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

4 participants