0

我正在使用RevMobiOS SDK 来展示全屏广告。这个 SDK 有一个内置的弹出视图作为全屏模式视图。问题是我正在使用一个UINavigationController,并发出这个:

"[RevMobFullscreenViewController visibleViewController]: unrecognized selector sent to instance"

该问题仅在 iOS 6 中出现。在 iOS 5 中一切正常。求助!该问题在广告加载后立即出现,并且看起来此时模态视图试图弹出UINavigationController并崩溃。

4

1 回答 1

0

我找到了关键点。我的 AppDelegate 中有这个:

- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
    return [[(UINavigationController *)window.rootViewController visibleViewController] supportedInterfaceOrientations];
}

这就是万恶之源。删除=固定:)

谢谢大家!

于 2013-06-28T20:04:31.993 回答