保活一个线程
BOOL __block isAuthalFinsh = NO;
[BHCreateServiceI(YDContactProtocol) requestContactAuthal:^(BOOL success) {
if (success) {
}
isAuthalFinsh = YES;
}];
while (!isAuthalFinsh) {
[[NSRunLoop currentRunLoop] runMode:[[NSRunLoop currentRunLoop] currentMode] beforeDate:[NSDate distantFuture]];
}
浙公网安备 33010602011771号