All Projects → yonat → BadgeLabel

yonat / BadgeLabel

Licence: MIT license
Simple animatable badge, based on UILabel and using CALayer

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Simple Animatable Badge based on UILabel using CALayer-s

BadgeLabel *badge = [BadgeLabel new];
badge.text = @"42";

Easily configure appearance:

badge.backgroundColor = [UIColor blueColor];
badge.hasBorder = YES;
badge.hasGloss = NO;

Includes two classes:

BadgeLabel - UILabel-derived badge, either Mail.app style gray, or app icon style red with border and gloss, or any other color and style combination.

BadgeTableViewCell - a UITableViewCell with a Mail.app style badge.

Unlike CoreGraphics based badges, this badge class can allows the flexibility and power of CoreAnimation layers - run the demo app to see how easy it is.

Note: To use BadgeLabel you need to link QuartzCore.framework .

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].