在ios 7中如何使用标准警告图标显示警报?

时间:2014-09-01 09:54:24

标签: ios xcode

我需要在标题前显示带有标准警告图标的警报。是否可能是简单的方法(即一些标准行为)或我必须实现自定义UIAlertView。

1 个答案:

答案 0 :(得分:8)

“\ u26A0”应显示警告图标,将其放在标题之前

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"\u26A0 title" message:@"message" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil];
[alert show];
[alert release];

Results :

相关问题