Add method setBackgroundColor:forState: to UIButton.
To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 7 or later
UIButtonSetBackgroundColorForState is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UIButtonSetBackgroundColorForState"
- (void)setBackgroundColor:(nullable UIColor *)color forState:(UIControlState)state;
Jianqiu Xiao, swordray@gmail.com
UIButtonSetBackgroundColorForState is available under the MIT license. See the LICENSE file for more info.