[Code note] the iOS-UIActionSheet font cannot be modified.
I ,.
Ii. Code.
RootViewController. h
#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UIActionSheetDelegate>@end
RootViewController. m
-(Void) Authorization :( NSSet *) touches withEvent :( UIEvent *) event {UIActionSheet * actionSheet = [[UIActionSheet alloc] initWithTitle: nil delegate: self cancelButtonTitle: @ "cancel" failed: nil otherButtonTitles: @ "cell phone password retrieval", nil]; [actionSheet showInView: self. view] ;}# pragma mark-UIActionSheetDelegate-(void) actionSheet :( UIActionSheet *) actionSheet clickedButtonAtIndex :( NSInteger) buttonIndex {switch (buttonIndex) {case 0: {NSLog (@ "-- 0 --");} break; case 1: {NSLog (@ "-- 1 --");} break; default: break ;}} -(void) willPresentActionSheet :( UIActionSheet *) actionSheet {for (UIView * subViwe in actionSheet. subviews) {if ([subViwe isKindOfClass: [UIButton class]) {UIButton * button = (UIButton *) subViwe; button. titleLabel. font = [UIFont systemFontOfSize: 15]; [button setTitleColor: [UIColor redColor] forState: UIControlStateNormal] ;}}