Skip to content

When count is 0, badges does hide #32

@multinerd

Description

@multinerd
NSInteger count = ([listOfUnread count]) ? [listOfUnread count] : 0;

BBBadgeBarButtonItem *barButton = [[BBBadgeBarButtonItem alloc] initWithCustomUIButton:show];
barButton.badgeValue = [NSString stringWithFormat:@"%lu", count];
barButton.badgeBGColor = colorBadgeColor;
barButton.shouldHideBadgeAtZero = YES;
barButton.shouldAnimateBadge = YES;

this is how im using your framework but when listOfUnread.count is 0 the badge doesnt disappear, it stays there with a 1

http://imgur.com/a/Q0EZh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions