"기다려주십시오"및 UIActivityIndicatorView와 함께 UIAlertView를 사용하고 있습니다. 나는 문제 해결 UIAlertView
{
...
[self performSelectorInBackground:@selector(sh) withObject:nil];
//i've tried also
//[NSThread detachNewThreadSelector:@selector(showWaiting) toTarget:self withObject:nil];
...
}
- (void)showWaiting {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[waitingAlert show];
[pool drain];
}
경고가 표시되면, 화면이 어두워 비활성화된다
를 사용하여 보여줍니다. 경고를 해제 할 시간이 올 때이 경고가 사라진 후 나는[waitingAlert dismissWithClickedButtonIndex:0 animated:NO];
을, 그러나 때때로 (가능성은 약 5 %) 화면이 이전 어두워 및 비활성 상태로 유지. 누군가 그런 문제에 직면 해 있습니까? 감사합니다.
은 "@selector (sh)"실수입니까? 위에 정의 된 'sh'메소드가 없습니다. – occulus
더 많은 코드를 참조해야합니다. 어디에서 dismissWithClickedButtonIndex를 호출합니까? – occulus