Skip to content

Instantly share code, notes, and snippets.

@jellybeansoup
Created July 5, 2014 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jellybeansoup/9051a033e7b7929d2a70 to your computer and use it in GitHub Desktop.
Save jellybeansoup/9051a033e7b7929d2a70 to your computer and use it in GitHub Desktop.
My "fix" for the stuck grey buttons thing.
#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