首页 > 解决方案 > 具有多种颜色的 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];

标签: iosobjective-cuialertcontroller

解决方案


推荐阅读