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];
编辑:如何避免使用这个忽略选择器来让我的应用程序获得批准?