Latest 0.1
Homepage https://github.com/luugiathuy/UIButton-BackgroundColor
License MIT
Platforms ios , requires ARC
Authors

A category or extension for UIButton to set solid background color as background image.

Installation

CocoaPods

Add this to your Podfile

pod 'UIButton+BackgroundColor'

Usage

Import <UIButton+BackgroundColor.h>, then you can set background color with state for your UIButton using:

[self.blueButton setBackgroundColor:[UIColor blueColor] forState:UIControlStateNormal];

You can also set background color default appearance for UIButton

[[UIButton appearance] setBackgroundColor:[UIColor blueColor] forState:UIControlStateNormal];

Contact

@luugiathuy

Latest podspec

{
    "name": "UIButton+BackgroundColor",
    "version": "0.1",
    "summary": "A category or extension for UIButton to set solid background color as background image",
    "homepage": "https://github.com/luugiathuy/UIButton-BackgroundColor",
    "license": "MIT",
    "authors": {
        "Luu Gia Thuy": "[email protected]"
    },
    "social_media_url": "http://twitter.com/luugiathuy",
    "platforms": {
        "ios": null
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/luugiathuy/UIButton-BackgroundColor.git",
        "tag": "0.1"
    },
    "source_files": "UIButton+BackgroundColor/*.{h,m}"
}

Pin It on Pinterest

Share This