Latest 0.0.7
Homepage https://github.com/mustafaibrahim989/MIBadgeButton
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

Version
Platform

MIBadgeButton is badge button with high UITableView/UICollectionView performance.

Usage

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

Screenshots

alt tag

Installation

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)];

Author

Mustafa Ibrahim, [email protected]

Notes

Designed for iOS 6 and iOS 7.

License

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

Latest podspec

{
    "name": "MIBadgeButton",
    "version": "0.0.7",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/mustafaibrahim989/MIBadgeButton",
    "authors": {
        " Mustafa Ibrahim": "[email protected]"
    },
    "social_media_url": "https://twitter.com/mibrahim989",
    "summary": "iOS custom button badge designed for iOS.",
    "source": {
        "git": "https://github.com/mustafaibrahim989/MIBadgeButton.git",
        "tag": "0.0.7"
    },
    "source_files": "Classes/ios/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "6.0"
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This