I have an iPad app which already works on iOS 7. I used to reduce the text size in the action sheet buttons with this code:
- (void) willPresentActionSheet:(UIActionSheet *)actionSheet {
for (UIView *subview in actionSheet.subviews) {
if ([subview isKindOfClass:[UIButton class]]) {
UIButton *button = (UIButton *)subview;
button.titleLabel.font = [UIFont fontWithName:@"HelveticaNeue" size:17.0];
}
}
}
I'm looking for a way to do the same on iOS 8 with UIAlertController
and UIAlertAction
. Although the UIAlertController
has a view with subviews, it doesn't seem to have any UIButton
or UILabel
in it.