Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

UITintedButton

Category for UIButton to tint the image or background.

Subscribe to updates I use UITintedButton


Statistics on UITintedButton

Number of watchers on Github 72
Number of open issues 1
Average time to close an issue 8 months
Main language Objective-C
Average time to merge a PR 5 months
Open pull requests 1+
Closed pull requests 0+
Last commit almost 4 years ago
Repo Created almost 6 years ago
Repo Last Updated about 2 years ago
Size 251 KB
Organization / Authorfilipstefansson
Latest Release1.01
Contributors3
Page Updated
Do you use UITintedButton? Leave a review!
View UITintedButton activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating UITintedButton for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

UITintedButton

Ever wanted to tint a UIButton like you do with a UIBarButtonItem or a UINavigationItem? Here you go!

UITintedButton

This category adds two instance methods and two class methods to UIButton:

-(void)setImageTintColor:(UIColor *)color forState:(UIControlState)state;
-(void)setBackgroundTintColor:(UIColor *)color forState:(UIControlState)state;

+(void)tintButtonImages:(NSArray *)buttons withColor:(UIColor *)color forState:(UIControlState)state;
+(void)tintButtonBackgrounds:(NSArray *)buttons withColor:(UIColor *)color forState:(UIControlState)state;

Installation

CocoaPods

pod 'UITintedButton'

Manual

Drag UIButton+tintImage.h and UIButton+tintImage.m.

Usage

#import UIButton+tintImage.h

// Tint single buttons
[button setImageTintColor:[UIColor redColor] forState:UIControlStateNormal];
[button setBackgroundTintColor:[UIColor redColor] forState:UIControlStateNormal];

// Tint multiple buttons
[UIButton tintButtonImages:@[button1, button2, button3] withColor:[UIColor redColor] forState:UIControlStateNormal];
[UIButton tintButtonBackgrounds:@[button1, button2, button3] withColor:[UIColor redColor] forState:UIControlStateNormal];
UITintedButton open pull requests (View All Pulls)
  • Fix broken headings in Markdown files
UITintedButton list of languages used
Other projects in Objective-C