An open API service indexing awesome lists of open source software.

https://github.com/swordray/uibuttonsetbackgroundcolorforstate

UIButton set background color for state extension in Swift/OC.
https://github.com/swordray/uibuttonsetbackgroundcolorforstate

ios uibutton uikit

Last synced: about 1 year ago
JSON representation

UIButton set background color for state extension in Swift/OC.

Awesome Lists containing this project

README

          

# UIButtonSetBackgroundColorForState

[![Version](https://img.shields.io/cocoapods/v/UIButtonSetBackgroundColorForState.svg?style=flat)](http://cocoapods.org/pods/UIButtonSetBackgroundColorForState)
[![License](https://img.shields.io/cocoapods/l/UIButtonSetBackgroundColorForState.svg?style=flat)](http://cocoapods.org/pods/UIButtonSetBackgroundColorForState)
[![Platform](https://img.shields.io/cocoapods/p/UIButtonSetBackgroundColorForState.svg?style=flat)](http://cocoapods.org/pods/UIButtonSetBackgroundColorForState)

Add method setBackgroundColor:forState: to UIButton.

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

- iOS 7 or later

## Installation

UIButtonSetBackgroundColorForState is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod "UIButtonSetBackgroundColorForState"
```

## Usage

```objc
- (void)setBackgroundColor:(nullable UIColor *)color forState:(UIControlState)state;
```

## Author

Jianqiu Xiao, swordray@gmail.com

## Sponsors

* [BaiLu ShuYuan](https://bailushuyuan.org)

## License

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