我正在使用RevMob
iOS SDK来展示全屏广告。此SDK具有内置弹出视图作为全屏模式视图。问题是我使用的是UINavigationController
,并发出了这个:
"[RevMobFullscreenViewController visibleViewController]: unrecognized selector sent to instance"
问题仅出现在iOS 6中。对于iOS 5,一切都还可以。帮助!
广告加载后会出现此问题,此时模态视图会尝试弹出UINavigationController
并崩溃。
答案 0 :(得分:0)
我找到了关键点。 我在我的AppDelegate中有这个:
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return [[(UINavigationController *)window.rootViewController visibleViewController] supportedInterfaceOrientations];
}
这就是万恶之源。删除=修复:)
感谢所有人!