Bild zu UIAlertAction in UIAlertController hinzufügen
Ich habe einige Screenshots eines UIAlertControllers mit einem Bild links in der Zeile gesehen, aber ich habe es in der Dokumentation nicht gesehen. Ein visuelles Beispiel istHier ist der Code, den ich gerade für meinen Controller habe:
UIAlertController * view = [UIAlertController
alertControllerWithTitle:@"My Title"
message:@"Select you Choice"
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction* ok = [UIAlertAction
actionWithTitle:@"OK"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
}];
[view addAction:ok];
[self presentViewController:view animated:YES completion:nil];