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

Badge not showing in UIBarButtonItem #13

Open
sreelash opened this issue Sep 13, 2015 · 6 comments
Open

Badge not showing in UIBarButtonItem #13

sreelash opened this issue Sep 13, 2015 · 6 comments

Comments

@sreelash
Copy link

Hi, i am using this control for showing badge on barbuttonitem. it works fine for the first controller or root controller in navigation controller stack. While pushing to another controller, I tried to show badge and I cannot see any effect there. Can you help me to resolve this issue. It's very urgent for me now.

@tlilioussam
Copy link

I have the same issue !!!

@encastellano
Copy link

I have the same issue, i used a fork make by MobileXLabs and its working (some bug fixed):

this is the url https://github.com/MobileXLabs/UIBarButtonItem-Badge/

@manan280194
Copy link

You have to type the code in viewDidAppear method. I have tried it. I was also having the same problem.

@Igor-Poltavtsev
Copy link

Igor-Poltavtsev commented Jul 6, 2016

You should first time set badgeValue in viewDidLayoutSubviews. In this case it'll appear and don't blink, like if you set it in viewDidAppear:

- (void)viewDidLayoutSubviews {
    barButton.badgeValue = @"5";
}

@songxing10000
Copy link

viewDidAppear
viewDidLayoutSubviews
don't work

@lethianqt94
Copy link

Same issue

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

7 participants