The iOS framework that grows only as fast as its documentation
Nimbus Badge


class  NIBadgeView
 A view that mimics the iOS notification badge style. More...


This Nimbus badge view is a UIView that draws a customizable notification badge-like view.

Screenshot of a Nimbus badge on the iPhone

Minimum Requirements

Required frameworks:

Minimum Operating System: iOS 4.0

Source located in src/badge/src

#import "NimbusBadge.h"

Basic Use

The badge view works much like UILabel. Once you've assigned text and configured the attributes you should call sizeToFit to have the badge determine its ideal size.

NIBadgeView* badgeView = [[NIBadgeView alloc] initWithFrame:CGRectZero];
badgeView.text = @"7";
[badgeView sizeToFit];
[self.view addSubview:badgeView];