CFRunLoopRun 疑问
@implementation SUIModalAlertView@synthesize _buttonIndex;
- (BOOL)canBecomeFirstResponder {
return NO;
}
- (void)show {
CFRunLoopRef currentLoop = CFRunLoopGetCurrent();
SUIModalAlertViewDelegate *modalDelegate = [[SUIModalAlertViewDelegate alloc] initWithRunLoop:currentLoop];
self.delegate = modalDelegate;
[super show];
// Wait for response
CFRunLoopRun();
_buttonIndex = modalDelegate._buttonIndex;
}
@end
self.delegate = modalDelegate;
// Wait for response
CFRunLoopRun();
怎么就会等待,如何实现的,请帮忙解决下,谢谢。 iphone
补充:移动开发 , iPhone