UIBarButtonItem-Badge icon indicating copy to clipboard operation
UIBarButtonItem-Badge copied to clipboard

Badge not showing in UIBarButtonItem

Open sreelash opened this issue 9 years ago • 6 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.

sreelash avatar Sep 13 '15 11:09 sreelash

I have the same issue !!!

tlilioussam avatar Sep 15 '15 12:09 tlilioussam

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/

encastellano avatar Sep 16 '15 15:09 encastellano

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

manan280194 avatar Mar 09 '16 05:03 manan280194

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

Igor-Poltavtsev avatar Jul 06 '16 22:07 Igor-Poltavtsev

viewDidAppear viewDidLayoutSubviews don't work

songxing10000 avatar Jun 13 '17 03:06 songxing10000

Same issue

lethianqt94 avatar Dec 20 '17 04:12 lethianqt94