Skip to content

Commit

Permalink
Set title color for disabled status
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnjcl authored and youknowone committed Sep 21, 2013
1 parent 34f92ae commit 1a21f94
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UI7Kit/UI7Button.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ - (void)setTitleColor:(UIColor *)color forState:(UIControlState)state {
self.___textTitleColor = color;
[self _tintColorUpdated];
}

NSString *name; SEL selector; IMP impl;
name = [@"__set" stringByAppendingString:@"TitleColor:forState:"];
selector = NSSelectorFromString(name);
impl = class_getMethodImplementation(self.class, selector);
impl(self, selector, color, state);
}

- (UIColor *)___tintColor {
Expand Down

0 comments on commit 1a21f94

Please sign in to comment.