Приложение iPhone отклонено из-за «непубличного API» «игнорировать» - PullRequest
1 голос
/ 01 декабря 2011

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];

РЕДАКТИРОВАТЬ: Как можно избежать использования этого селектора игнорирования, чтобы одобрить мое приложение?

...