In ios 7, how to display a warning with a standard warning icon?

I need to display a warning with a standard warning icon in front of the title. Is this possible easily (like some standard behavior) or should I implement a custom UIAlertView.

+3


source to share


1 answer


"\ u26A0" should display a warning icon, place it in front of the title

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

      



Results:

+8


source







All Articles