Skip to content

Instantly share code, notes, and snippets.

View yuhua-chen's full-sized avatar

Michael Chen yuhua-chen

View GitHub Profile
@wess
wess / UIButton+Addition.h
Created January 21, 2012 16:00
added setBackground for event to UIButton
#import <UIKit/UIKit.h>
@interface UIButton(WCButton)
@property (nonatomic, retain) NSMutableDictionary *backgrounds;
- (void) setBackgroundColor:(UIColor *)bgColor forState:(UIControlState)state;
@end