Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

respect reversesTitleShadowWhenHighlighted

  • Loading branch information...
commit 9a7ba1003b7b82bd5a579e206bbc83da67f7f30b 1 parent a286f98
@joshaber joshaber authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/UIKit/TUIButton.m
View
2  lib/UIKit/TUIButton.m
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.