Created
July 5, 2014 00:43
-
-
Save jellybeansoup/9051a033e7b7929d2a70 to your computer and use it in GitHub Desktop.
My "fix" for the stuck grey buttons thing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - Action sheet delegate | |
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet { | |
for( UIView *subview in actionSheet.subviews ) { | |
if( [subview isKindOfClass:[UIButton class]] ) { | |
UIButton *button = (UIButton *)subview; | |
[button setTitleColor:[UIColor mainTintColor] forState:UIControlStateNormal]; | |
[button setTitleColor:[UIColor mainTintColor] forState:UIControlStateHighlighted]; | |
[button setTitleColor:[UIColor mainTintColor] forState:UIControlStateSelected]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment