WXNavigationBar icon indicating copy to clipboard operation
WXNavigationBar copied to clipboard

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

Open chinghoi opened this issue 3 years ago • 3 comments

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

chinghoi avatar Dec 03 '20 02:12 chinghoi

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
}

alexiscn avatar Dec 03 '20 03:12 alexiscn

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

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

yuyedaidao avatar May 19 '21 06:05 yuyedaidao

我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相关设置全部失效了

GodLiek avatar Nov 22 '22 13:11 GodLiek