我在 applicationDidFinishLaunching 中检查网络可达性:
[self performSelectorInBackground:@selector(performReachabilityCheck) withObject:nil];
后台线程
-(void)performReachabilityCheck{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
internetReach = [[Reachability reachabilityForInternetConnection] retain];
[internetReach startNotifer];
[self updateInterfaceWithReachability: internetReach];
[pool release]; pool = nil;
}
我不确定为什么我的应用程序无法及时启动?