小编Pet*_*ali的帖子

UIAlertAction处理程序在延迟后运行

我正在尝试将我的UIAlertViews更改为UIAlertControllers.我为它设置了这个动作:

UIAlertAction *undoStopAction = [UIAlertAction actionWithTitle:@"Undo Stop"
                                                        style:UIAlertActionStyleDefault
                                                       handler:^(UIAlertAction *action) {
                                                           [self undoStop];
                                                       }];
Run Code Online (Sandbox Code Playgroud)

但是,处理程序在操作被点击后大约一秒钟才会运行.有什么方法可以加快速度吗?

objective-c uialertview ios uialertcontroller uialertaction

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