iOS custom badge button designed for iOS 6&7.
Objective-C Ruby
Failed to load latest commit information.
Classes -- Hide badge if zero May 13, 2016
Project -- Hide badge if zero May 13, 2016
.gitignore Initial commit Feb 6, 2014 Initial commit Feb 6, 2014
LICENSE Initial commit Feb 6, 2014
MIBadgeButton.podspec 0.0.6. May 13, 2015 Update Aug 23, 2014
Rakefile Initial commit Feb 6, 2014


Version Platform

MIBadgeButton is badge button with high UITableView/UICollectionView performance.


To run the example project; clone the repo, and run pod install from the Project directory first.


alt tag


MIBadgeButton is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "MIBadgeButton"

Then add to your viewcontroller

MIBadgeButton *btn1 = [MIBadgeButton buttonWithType:UIButtonTypeCustom];
[btn1 setFrame:CGRectMake(100, 150, 64, 30)];
[btn1 setTitle:@"test" forState:UIControlStateNormal];
[btn1 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[btn1 setBadgeString:@"244"];
[self.view addSubview:btn1];

Set EdgeInsets to change the default position of the badge (Optional)

[btn1 setBadgeEdgeInsets:UIEdgeInsetsMake(12, 0, 0, 12)];


Mustafa Ibrahim,


Designed for iOS 6 and iOS 7.


MIBadgeButton is available under the MIT license. See the LICENSE file for more info.