ios - 具有多种颜色的 UIAlertController 消息
问题描述
我想把第二句话改成不同的颜色。
UIAlertController * alert=[UIAlertController
alertControllerWithTitle:@"Warning!!!" message:@"This is the first sentence.\r\n\n
This is the second sentence I want a different color.\r\n\n
This is the third sentence.)"
preferredStyle:UIAlertControllerStyleAlert];
解决方案
推荐阅读
- tensorflow - TensorFlow 1.4:如何将 BoostedTreesClassifier 与 Colab TPU 结合使用
- javascript - 开玩笑的模拟服务员
- reactjs - 使用 react 和 ruby-graphql 进行无限滚动
- javascript - 下拉菜单点击外部
- c# - {“输入字符串的格式不正确。”}:oracle 存储过程错误
- sql - 按块分组
- c# - 如何在一种方法中设置类属性并在另一种方法中调用它?
- python - 在 python 中导入时可以忽略本地文件吗?
- javascript - 如何使用 service worker 重新加载网页?
- javascript - 在 React 中输入数字格式