我已经看过UIAlertControllers的几个屏幕截图,在行的左边有一个图像,但我没有在文档中看到它.视觉的一个例子是
这是我现在为我的控制器提供的代码:
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];
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 iOS 应用程序的操作表中添加图标。我在AppStore的action sheet中看到apple已经实现了这样的行为,但是没有提供任何回调方法来实现它?
关于如何在 iOS 12 Swift 4.x Xcode10.x 上实现它的任何建议?