SkillAgentSearch skills...

UIButtonSetBackgroundColorForState

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

Install / Use

/learn @swordray/UIButtonSetBackgroundColorForState
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

UIButtonSetBackgroundColorForState

Version License Platform

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. To install it, simply add the following line to your Podfile:

pod "UIButtonSetBackgroundColorForState"

Usage

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

Author

Jianqiu Xiao, swordray@gmail.com

Sponsors

License

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

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated2y ago
Forks0

Languages

Objective-C

Security Score

75/100

Audited on Jan 30, 2024

No findings