0
-(void)manageNetConnection{
static BOOL closing=FALSE;
NSLog(@"connecting Imap after net");
if([imapStoreObj isStoreConnected] && closing==FALSE){
[imapStoreObj close];
NSLog(@"close store");
closing=TRUE;
[self performSelector:@selector(manageNetConnection) withObject:nil afterDelay:5.0];
return;
}else if ([imapStoreObj isStoreConnected] && closing==TRUE) {
[self performSelector:@selector(manageNetConnection) withObject:nil afterDelay:5.0];
return;
}
closing=FALSE;
[indicatorForGetMail setHidden:NO];
[indicatorForGetMail startAnimation:nil];
netOff=2;
NSLog(@"netOff==%d",netOff);
[editFolderTable setAllowsMultipleSelection:NO];
NSLog(@"connect net");
[self reconnect];
}
此函数预计会自行调用,直到连接重新建立。问题是该函数在指定的延迟后不会自行调用。 请帮忙延迟后执行选择器
你有固定的这个问题? – yoninja