zoukankan      html  css  js  c++  java
  • UIAlertAction 改变字体颜色

    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle: UIAlertControllerStyleActionSheet];

                    

                    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {

                        

                    }];

                    

                    UIAlertAction *allAction = [UIAlertAction actionWithTitle:@"看全部" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

                        

                    }];

                    

                   [allAction setValue:[UIColor YXColorWithHexCode:@"#181615"] forKey:@"_titleTextColor"];

                    

                    UIAlertAction *womanAction = [UIAlertAction actionWithTitle:@"只看女" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

                        

                    }];

                    [womanAction setValue:[UIColor YXColorWithHexCode:@"#181615"] forKey:@"_titleTextColor"];

                    UIAlertAction *manAction = [UIAlertAction actionWithTitle:@"只看男" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

                        

                    }];

                    [manAction setValue:[UIColor YXColorWithHexCode:@"#181615"] forKey:@"_titleTextColor"];

                    [alertController addAction:allAction];

                    [alertController addAction:womanAction];

                    [alertController addAction:manAction];

                    [alertController addAction:cancelAction];

                    [self presentViewController:alertController animated:YES completion:nil];

  • 相关阅读:
    mysql索引
    springboot mybatis 后台框架平台 shiro 权限 集成代码生成器
    java 企业网站源码模版 有前后台 springmvc SSM 生成静态化
    java springMVC SSM 操作日志 4级别联动 文件管理 头像编辑 shiro redis
    activiti工作流的web流程设计器整合视频教程 SSM和独立部署
    .Net Core中的ObjectPool
    文件操作、流相关类梳理
    .Net Core中的配置文件源码解析
    .Net Core中依赖注入服务使用总结
    消息中间件RabbitMQ(一)
  • 原文地址:https://www.cnblogs.com/106dapeng/p/6109906.html
Copyright © 2011-2022 走看看