我有一個簡單的應用程序,它工作正常,直到我添加了一些代碼,在某個時候啓動了新線程,然後嘗試顯示來自該線程的警報。現在,只要用於顯示警報的代碼被擊中,應用程序就會崩潰。顯示UI元素,如來自多個線程的警報
UIAlertView * addAlert = [[UIAlertView alloc] initWithTitle:@"New alert"
message:@"Example alert"
delegate:nil
cancelButtonTitle:@"Cancel", otherButtonTitles:@"OK", nil];
[addAlert show];
[addAlert release];
我的問題是:是否可以顯示UI元素,如來自iOS上多線程的警報?