1

公開されていない API、つまり無視を使用しているため、Apple は私のアプリを拒否しました。

アプリで 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];

編集:この無視セレクターを使用してアプリを承認しないようにするにはどうすればよいですか?

4

0 に答える 0