ChenYilong / CYLTabBarController

[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
MIT License
6.9k stars 1.45k forks source link

[bug]:CYLTabBarController里的viewWillLayoutSubviews需要增加super调用 #569

Closed CaiChenghan closed 2 years ago

CaiChenghan commented 2 years ago

CYLTabBarController.m

143行

- (void)viewWillLayoutSubviews {
    [super viewWillLayoutSubviews]; /// 需要添加super调用
    ...
}
  1. 这里得加个super的调用,不然,只能hookCYLTabBarController才能拦截到这个方法。
  2. 如果不加super的调用,在hookUITabBarController的时候,就失败了。
ChenYilong commented 2 years ago

新版本v1.29.1中已修复 

变更记录见: https://github.com/ChenYilong/CYLTabBarController/commit/062ad52c9cb0cee9fabbb9de6c3a0ad893713d86