mikeMTOL / UIBarButtonItem-Badge

UIBarButtonItem+Badge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Badge not showing in UIBarButtonItem

sreelash opened this issue · comments

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.

I have the same issue !!!

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/

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

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";
}

viewDidAppear
viewDidLayoutSubviews
don't work

commented

Same issue