iphoneobjective-ciosiadmobclix

Ad view not rotating


I have two view controller in my application. 1- TabBarController 2- Ad view Controller I added the ads just above the tab-bar so that it can be visible for all the views in the tab-bar.

Now my problem is when i add the ad view in the UIWindow then it does not rotate with the screen but full screen ad work fine (means it is shown in the current orientation of device). When i add ad in tab-bar controller view then it rotates but when user taps on ad in landscape mode. then it shows full screen ad outside the visible area of the view. Any help will be appreciated.


Solution

  • Implement view controller containment. Watch the Implementing UIViewController Containment video from WWDC 2011 to learn how to do this.