UIViewController在按下OK键时不会解雇。
printf("Enter a string to reverse: ");
scanf("%s", str1);
size = strlen(str1);
printf("string1 with each character on a new line:\n");
int i;
for(i = 0; i < size; i++)
printf("%c\n", str1[i]);
printf("string1 printed backwards: \n");
当基于某些标准更改位置时,我必须显示警报。它显示但无法解雇。当我点击OK时,它会在控制台上抛出以下错误。
__dispatchPreprocessedEventFromEventQueue中的意外的nil窗口,_windowServerHitTestWindow:&lt; UIWindow:0x7ff54ac10d80; frame =(0 0; 375 667); autoresize = W + H; userInteractionEnabled = NO; gestureRecognizers =; layer =&lt; UIWindowLayer:0x608000030ce0&gt;&gt;