This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

respect reversesTitleShadowWhenHighlighted

  • Loading branch information...
1 parent a286f98 commit 9a7ba1003b7b82bd5a579e206bbc83da67f7f30b @joshaber joshaber committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/UIKit/TUIButton.m
View
@@ -257,7 +257,7 @@ - (void)_stateDidChange {
}
- (void)setHighlighted:(BOOL)highlighted {
- if(self.highlighted != highlighted) {
+ if(self.highlighted != highlighted && self.reversesTitleShadowWhenHighlighted) {
_titleView.renderer.shadowOffset = CGSizeMake(_titleView.renderer.shadowOffset.width, -_titleView.renderer.shadowOffset.height);
}

0 comments on commit 9a7ba10

Please sign in to comment.