Tôi đã có một vụ tai nạn:UIAlertView làm cho chương trình sụp đổ
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIKeyboardTaskQueue performTask:] may only be called from the main thread.'
Và tôi không thể tìm thấy một giải pháp trong 2 ngày. Và đây là mã:
[alert dismissWithClickedButtonIndex:0 animated:YES];
UIAlertView *noTicketAlert = [[UIAlertView alloc] initWithTitle:@"Aradığınız kriterlere uygun bilet bulunamadı!" message:nil delegate:self cancelButtonTitle:@"Tamam" otherButtonTitles: nil];
[noTicketAlert show];
Chăm sóc để cho chúng ta thấy mã của bạn cho cảnh báo? –
Điều này sẽ bị lỗi trong Xcode 4 và Xcode 3. – trojanfoe
Tôi không nghĩ rằng thông báo lỗi có thể rõ ràng hơn nhiều. – trojanfoe