Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabbar #37

Open
KenwayCen opened this issue Jul 29, 2019 · 4 comments
Open

tabbar #37

KenwayCen opened this issue Jul 29, 2019 · 4 comments

Comments

@KenwayCen
Copy link

No description provided.

@KenwayCen
Copy link
Author

tabbarItem 的角标不显示
你的qq群根本加不了

@jkpang
Copy link
Owner

jkpang commented Jul 29, 2019

角标不显示看看是否已获取到了tabbarItem实例?QQ群已满,只能出,不能进 @KenwayCen

@Hank-Zhong
Copy link

假设TabBar有2个界面,在第二个界面(VC2)还未展示的时候,在自定义TabBarController里直接调用[VC2.tabBarItem pp_addBadgeWithText:@"9+"]无效,VC2.tabBarItem是有值的,
UIView *tabBarButton = [self valueForKey:@"_view"];获取不到tabBarButton,
请问此时应该如何解决? @jkpang

@Hank-Zhong
Copy link

Hank-Zhong commented Nov 7, 2019

假设TabBar有2个界面,在第二个界面(VC2)还未展示的时候,在自定义TabBarController里直接调用[VC2.tabBarItem pp_addBadgeWithText:@"9+"]无效,VC2.tabBarItem是有值的,
UIView *tabBarButton = [self valueForKey:@"_view"];获取不到tabBarButton,
请问此时应该如何解决? @jkpang

目前我的解决办法是在自定义的TabBarController里:
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
// 提前加载,让其调用viewdidload展示未读消息数
[self.msgVC loadViewIfNeeded];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants