Hi I have my landscape only app. I am adding iAd to it and i click on test add my app crashes with this error
*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
In my app delegate i have
_bannerView.requiredContentSizeIdentifiers = [NSSet setWithObjects: ADBannerContentSizeIdentifierLandscape, nil];
and in my VC i am again setting
[_bannerView setCurrentContentSizeIdentifier:ADBannerContentSizeIdentifierLandscape];
To keep my app Landspace only I have
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
Please suggest what is wrong here.
Fixed by updating my code with latest SDK changes