|
Nimbus
master - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
Classes | |
| 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.
Required frameworks:
Minimum Operating System: iOS 4.0
Source located in src/badge/src
#import "NimbusBadge.h"
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];