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.92k stars 1.46k forks source link

[Q-A]使用方法询问:cyl_clearBadge 无效 #432

Closed tzwgod closed 5 years ago

tzwgod commented 5 years ago
dispatch_async(dispatch_get_main_queue(), ^{
                    [mineVC.tabBarItem setBadgeValue:[NSString stringWithFormat:@"%ld",new]];
                });

赋值成功后,在收到 badge 为 0 的通知时,[mineVC cyl_clearBadge] 无效;

dispatch_async(dispatch_get_main_queue(), ^{
                    [mineVC cyl_clearBadge];
                });
ChenYilong commented 5 years ago

cyl开头的红点分类方法,搭配的是自定义红点,对系统红点无效。

tzwgod commented 5 years ago

共青团开头的红点分类方法,搭配的是自定义红点,对系统红点无效。

感谢:)