【发布时间】:2015-11-12 06:25:26
【问题描述】:
当我使用 UIAlertView 时,我发现消息的 textAligment 是 Center。例如,当我写这段代码时:
UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:nil
message:@"this is first line \nsecondLine should be center"
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:nil, nil];
[alertView show];
效果如下:
如我们所见,文本“这是第一行”在中心,但我想将其更改为左侧。我知道 UILabel 可以更改文本的对齐方式,但我不知道是否可以在 UIAlertView 中更改它。
【问题讨论】:
标签: ios css uialertview