在 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 模拟器上的转换或提高速度。
最佳答案
关于ios - UIAlertController 在 iOS 9.3 中太慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40352099/