Skip to content

Commit

Permalink
button highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
tonimoeckel committed Jun 5, 2014
1 parent d61d05f commit 513a587
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion FontAwesomeIconFactory-Extensions/Button/FAButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ - (void)awakeFromNib

- (void)setIcon:(NIKFontAwesomeIcon)icon {
_icon = icon;


NIKFontAwesomeIconFactory *factory = [NIKFontAwesomeIconFactory buttonIconFactory];
[factory setColors:@[self.tintColor]];
[factory setSize:self.bounds.size.height *0.8];
[factory setColors:@[[self titleColorForState:UIControlStateNormal]]];
[self setImage:[factory createImageForIcon:icon] forState:UIControlStateNormal];
[factory setColors:@[[self titleColorForState:UIControlStateSelected]]];
[self setImage:[factory createImageForIcon:icon] forState:UIControlStateSelected];
[factory setColors:@[[self titleColorForState:UIControlStateDisabled]]];
[self setImage:[factory createImageForIcon:icon] forState:UIControlStateDisabled];


}
Expand Down

0 comments on commit 513a587

Please sign in to comment.