2016-10-31 71 views
0

在iOS 9.3中執行任何按鈕操作時,UIAlertController速度太慢。不知道是否是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模擬器上的轉換或提高速度。

+0

你可以檢查它是否顯示在主線程上嗎? – negaipro

+0

@negaipro - 感謝您的幫助。與UI主線無關,問題是由BorisVerebsky指出的iPhone模擬器「慢動畫」。 – Deminem

回答

1

在模擬器菜單中禁用調試/慢動畫。

enter image description here

+0

就在當場!謝謝 ;-) – Deminem