Apple拒绝了我的应用,因为它使用的是非公开API,即忽略。
我在我的应用程序中使用XMPPFramework,在XMPPParser中,使用以下代码行
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// We can't run the run loop unless it has an associated input source or a timer.
// So we'll just create a timer that will never fire - unless the server runs for 10,000 years.
[NSTimer scheduledTimerWithTimeInterval:DBL_MAX target:self selector:@selector(ignore:) userInfo:nil repeats:NO];
// Run the runloop
BOOL allIsWell = YES;
while(!stopped && allIsWell)
{
NSAutoreleasePool *innerPool = [[NSAutoreleasePool alloc] init];
allIsWell = [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode
beforeDate:[NSDate dateWithTimeIntervalSinceNow:3600.0]];
[innerPool release];
}
[pool release];
编辑:如何避免使用此忽略选择器来批准我的应用?