iOS中 UIActionSheet字体如何修改-游戏攻略-霍普软件下载网

网站首页   软件下载   游戏下载   翻译软件   电子书下载   电影下载   电视剧下载   教程攻略   音乐专区

请输入您要查询的教程攻略:

霍普软件下载网-旗舰软件下载站,将绿色免费商业版破解软件、共享软件、游戏、电影、电视剧一网打尽!

文章 iOS中 UIActionSheet字体如何修改
分类 教程攻略
语言 zh-CN
大小
版本
下载 暂无下载
介绍
    一,效果图。
    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];    }  }}

    
    
截图
随便看

免责声明
本网站所展示的内容均来源于互联网,本站自身不存储、不制作、不上传任何内容,仅对网络上已公开的信息进行整理与展示。
本站不对所转载内容的真实性、完整性和合法性负责,所有内容仅供学习与参考使用。
若您认为本站展示的内容可能存在侵权或违规情形,请您提供相关权属证明与联系方式,我们将在收到有效通知后第一时间予以删除或屏蔽。
本网站对因使用或依赖本站信息所造成的任何直接或间接损失概不承担责任。联系邮箱:101bt@pm.me