ESTabBarController
ESTabBarController copied to clipboard
delegate to ESTabBarController, when user shouldSelect function will run 2 times
let tabController:ESTabBarController = ESTabBarController()
tabController.delegate = self
func tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
print("running")
return true
}
Any problems?
@eggswift
使用delegate时
shouldSelect 方法执行了2次
我看了下源代码
看到你绑定调用了2次这个事件
sa
@eggswift 使用delegate时 shouldSelect 方法执行了2次 我看了下源代码 看到你绑定调用了2次这个事件
we fould the same problems
Hi,
yes, same issue here. What we are seeing is that when a tab bar item is selected, the shouldSelect delegate is called twice. Is there any way to get around this?
Thanks for your work! We use it since 2 years without any major problems.
cheers
Ohh let me check this.
Ohh let me check this.
I also found the same problems, I just started using it recently.
@aemoe 看到你绑定调用了2次这个事件 ???
可以让我看一下哪块的代码么? 或者你可以尝试提交一个MR,成为开发成员
遇到同样的问题@eggswift,问题大概出现在这边。
@eggswift any updates to this? Have the same problem. ShouldSelect running twice because of highlightAction in ESTabBarItemContainer