|
@@ -394,6 +394,9 @@
|
|
|
|
|
|
|
|
- (void)updateTabBarBadgeValueAtIndex:(NSInteger)index badgeCount:(NSInteger)badgeCount {
|
|
- (void)updateTabBarBadgeValueAtIndex:(NSInteger)index badgeCount:(NSInteger)badgeCount {
|
|
|
UITabBarController * tabbarVc = (UITabBarController *)self.window.rootViewController;
|
|
UITabBarController * tabbarVc = (UITabBarController *)self.window.rootViewController;
|
|
|
|
|
+ if (![tabbarVc isKindOfClass:[UITabBarController class]]) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
if(index < 0 || index >= tabbarVc.tabBar.items.count){
|
|
if(index < 0 || index >= tabbarVc.tabBar.items.count){
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|