0

I'm using a RevMob iOS SDK to show fullscreen ad. This SDK has a built-in pop-up view as a fullscreen modal view. The problem is that I'm using a UINavigationController, and issuing this:

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

The problem appears only in iOS 6. It is everything okay with iOS 5. Help! The problem appears right after the ad is loaded and it looks like in this moment the modal view tries to pop over the UINavigationController and crashes.

Joe Mastey
  • 26,809
  • 13
  • 80
  • 104
lonlywolf
  • 505
  • 5
  • 16
  • Seems like maybe something's going on with RevMobFullscreenViewController not actually being a NavigationController in this instance? What happens if you print [RevMobFullscreenViewController class] before you present it? – Stakenborg Jun 28 '13 at 19:38

1 Answers1

0

I've found the key point. I had this in my AppDelegate:

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

And that was the root of all evil. Removed = fixed :)

Thanks to all!

lonlywolf
  • 505
  • 5
  • 16