相关疑难解决方法(0)

在UIAlertController中将图像添加到UIAlertAction

我已经看过UIAlertControllers的几个屏幕截图,在行的左边有一个图像,但我没有在文档中看到它.视觉的一个例子是http://imgur.com/SISBvjB 这是我现在为我的控制器提供的代码:

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 uialertcontroller

52
推荐指数
5
解决办法
5万
查看次数

如何向操作表中的选项添加图标:iOS?

我正在尝试在 iOS 应用程序的操作表中添加图标。我在AppStore的action sheet中看到apple已经实现了这样的行为,但是没有提供任何回调方法来实现它?

关于如何在 iOS 12 Swift 4.x Xcode10.x 上实现它的任何建议?

带有图像的操作表。

xcode ios swift uialertcontroller

1
推荐指数
1
解决办法
2753
查看次数

标签 统计

ios ×2

uialertcontroller ×2

swift ×1

xcode ×1