找软件用软件,就到华军软件园! 软件发布
所在位置: 首页 — 教程攻略 — 教程 — 苹果软件教程  —  iOS中 UIAc...

iOS中 UIActionSheet字体如何修改

作者:小桥流水 日期:2017-07-11

一,效果图。

iOS中 UIActionSheet字体如何修改 三联

二,代码。

RootViewController.h#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UIActionSheetDelegate>@endRootViewController.m-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{  UIActionSheet *actionSheet=[[UIActionSheet alloc]initWithTitle:nil delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"手机找回密码", 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];    }  }}

相关文章

最新教程 更多

淘宝app怎么投诉淘宝卖家-淘宝app投诉淘宝卖家的方法 淘宝app怎么投诉淘宝卖家-淘宝app投诉淘宝卖家的方法

淘宝app怎么修改密码-淘宝app修改密码的方法 淘宝app怎么修改密码-淘宝app修改密码的方法

淘宝app怎么扫码-淘宝app扫码的方法 淘宝app怎么扫码-淘宝app扫码的方法

淘宝app怎么设置淘宝昵称-淘宝app设置淘宝昵称的方法 淘宝app怎么设置淘宝昵称-淘宝app设置淘宝昵称的方法

淘宝怎么用微信支付-淘宝用微信支付的方法 淘宝怎么用微信支付-淘宝用微信支付的方法

热门教程 更多

腾讯新闻怎么收藏新闻-腾讯新闻收藏新闻的方法 腾讯新闻怎么收藏新闻-腾讯新闻收藏新闻的方法

淘宝app怎么调大字体-淘宝app调大字体的方法 淘宝app怎么调大字体-淘宝app调大字体的方法

腾讯新闻怎么开启一键防护模式-腾讯新闻开启一键防护模式的方法 腾讯新闻怎么开启一键防护模式-腾讯新闻开启一键防护模式的方法

淘宝app怎么投诉淘宝卖家-淘宝app投诉淘宝卖家的方法 淘宝app怎么投诉淘宝卖家-淘宝app投诉淘宝卖家的方法

同程旅行怎么实名认证-同程旅行实名认证的方法 同程旅行怎么实名认证-同程旅行实名认证的方法