#pragma mark - UIActionSheetDelegate
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet
{
UIButton *buttonLast = [[actionSheet subviews] lastObject];
NSLog(@"%@", buttonLast.titleLabel.textColor);
[buttonLast setTitleColor:[UIColor colorWithRed:0.992 green:0.278 blue:0.168 alpha:1] forState:UIControlStateNormal];
UIButton *buttonFir = [[actionSheet subviews] objectAtIndex:1];
NSLog(@"%@", buttonFir.titleLabel.textColor);
[buttonFir setTitleColor:[UIColor colorWithRed:0 green:0.478 blue:1 alpha:1] forState:UIControlStateNormal];
}
转载于:https://blog.51cto.com/8386217/1421669