当前位置:编程学习 > wap >>

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
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,