ios - UIAlertController 在 iOS 9.3 中太慢

标签 ios objective-c ios-simulator ios9.3

在 iOS 9.3 中执行任何按钮操作时,UIAlertController 都太慢了。不确定是 iOS 9.3 问题还是缺少正确配置的内容。

UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"My Alert"
                                                               message:@"This is an action sheet."
                                                        preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"one"
                                                      style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
                                                          NSLog(@"You pressed button one");
                                                      }];
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"two"
                                                       style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
                                                           NSLog(@"You pressed button two");
                                                       }];

在 iPhone 模拟器上,点击操作表按钮需要 10 多秒才能打印控制台登录。谁能告诉我如何禁用 iPhone 模拟器上的转换或提高速度。

最佳答案

在模拟器菜单中禁用调试/慢速动画。

enter image description here

关于ios - UIAlertController 在 iOS 9.3 中太慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40352099/

相关文章:

ios - 我可以从左到右有两个 ECSlidingViewController Drawer 吗?

iphone - 可以在 iPhone/iPod touch 上流式传输 wma 声音文件吗?

windows - 适用于 Windows 的 iPhone 模拟器

ios - iOS:如何半速运行模拟器?

javascript - iPhone模拟器位置错误

ios - 自定义圆圈进度 View IOS

ios - 在我的 iOS 应用程序中与外部配件通信以播放流中的视频

ios - 如何检查用户是否购买了消耗品?

ios - 是否可以 'split' UIViewController 并将部件动画到所选单元格的顶部和底部

ios - iPad 上 UITextField 的自定义删除按钮