Coder Social home page Coder Social logo

bbbadgebarbuttonitem's People

Contributors

dennisreimann avatar jeroentrappers avatar tanguyaladenise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bbbadgebarbuttonitem's Issues

It's not supported to RTL mode

Thank you TanguyAladenise for your effort,

When the application is RTL mode , i need to change alignment badge to left.

Thank you again,

Cocoa pod

Please add a cocoa pod to this project.

How must be used directly form storyboard?

If I add a barButtonItem in the navigation bar and change its custom class to BBBadgeBarButtonItem and in my code write:
BBBadgeBarButtonItem* chatBarButtonItem=(BBBadgeBarButtonItem*)self.navigationItem.rightBarButtonItem;
chatBarButtonItem.badgeValue=@"1";
It does not work.
Any help?

Border

This is sweet. Would be great to have an optional border around it for this effect.

image

Updating badgeValue from AppDelegate didReceiveRemoteNotification

I'm [unsuccessfully] trying to update the badgeValue from the AppDelegate, barButton is nil.

BBBadgeBarButtonItem *barButton = (BBBadgeBarButtonItem *)self.window.rootViewController.navigationItem.leftBarButtonItem;
barButton.badgeValue = [NSString stringWithFormat:@"%d", [barButton.badgeValue intValue] + 1];

Not working in iOS 10

The badge value is there but the navigation bar icon is gone. But it's working in iOS 11.

When count is 0, badges does hide

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

tintcolor is missing

Hi, My UIBarButtonItem has tintColor. And I hope the item can keep it.
however, it currently doesn't have the tint color.
I tried to add color to the custom button and it failed either.

Please take a look.
2014-07-16 10 26 45 am

rotating button without the badge

Hi guys. I tried to do an animation on the BarButton while a Badge was displayed.

Since the Badge is attached to the Button, both will rotate. I only want the button image to rotate without the badge. Couldnt find a way to do that. Any inputs?

Please don't delete your release tags

You're breaking our projects that are using cocoapods with the following Podfile

pod 'BBBadgeBarButtonItem',
        :git => 'https://github.com/TanguyAladenise/BBBadgeBarButtonItem',
        :tag => '1.0'

UIBarButtons disappeared in iOS 9.2

I have just upgraded one of my Apps under development to iOS 9.2 and I have found that all navigationbar UIBarButtons have just disappeared and are not shown on the navigation bar.

A problem when using BBBadgeBarButtonItem

I am Yanzi Li ,a new to learn iOS dev.Sorry to bother you to share my problem when i use BBBadgeBarButtonItem.The problem is that when i set title text for  custom button instead of setting a image for it,the custom button title will cover  a part of badge ,which is not the case i want.I hope the badge will cover a part of the custom button title.  How can i  solve this problem ?Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.