I created the One View iPhone6 app for iOS6.
The app is for portrait only.
I added the iAds app to the app.
I add additional views to the application as follows:
if (self.menuChoiceInstance == nil) { self.menuChoiceInstance = [[NJDViewControllerMenuChoice alloc] initWithNibName:@"NJDViewControllerMenuChoice" bundle:nil]; self.menuChoiceInstance.delegate = self; } [self.view addSubview:self.menuChoiceInstance.view];
Everything seemed to be working fine.
Then I added universal / iPad support. Including the following line when I add a subtitle:
[self.menuChoiceInstance.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
Now I get problems with iAds.
When iAd is clicked on rootViewController iPad turns into landscape. Then it closes back to the portrait.
However, tapping iAd on the iPad on a subquery makes the view rotate to the landscape, and it stays on when closed. This destroys my user interface.
This problem with the iPad is the main problem, but now I also sometimes see iPhone viewing problems that may be related.
The iAd banner at the bottom of the screen showing test ads sometimes has giant text and icons inside it, which makes them overlapping and impossible to read. Pressing iAd rotates the phone to the landscape (again in the portrait-only app), but iAd displays ads as if it were a portrait, with stretched content that comes out of the bottom of the screen.