Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iAd on iPad: Landscape iAd not Oriented Correctly

This is still a relatively new topic so not sure how many people have got to implement iAd on iPad (iOS4.2.1).

But basically, I get the iAd banner to appear in landscape mode (and it appears correctly). The only problem is when I click the "Test Advertisement" it shows the test advertisement in portrait mode. I.e., the device is still in landscape but the text and iad box itself that says "this confirms that test ads are running correctly" is sideways.

Is this normal? has anyone else experience this? It almost seems like an apple bug but I'm not sure...

like image 595
Shai UI Avatar asked Nov 25 '10 18:11

Shai UI


People also ask

How do you make apps landscape on iPad?

Make sure that Rotation Lock is off: Swipe down from the top-right corner of your screen to open Control Center. Then tap the Rotation Lock button to make sure it's off. Turn your iPad sideways.

How do I force an app to landscape in IOS?

On an iPhone with a Home button, swipe up from the bottom of the screen to access it. On an iPhone without a Home button, swipe down from the top-right corner of the screen instead. Here, tap on the rotation lock icon (which looks like a lock with a circular arrow) to turn it on or off.


2 Answers

This happens to me, too. Apple's test ads on iPhone and iPad are portrait only. Real advertisements probably will support landscape mode.

like image 129
MrMage Avatar answered Oct 16 '22 21:10

MrMage


the ADBannerView's requiredContentSizeIdentifiers is defaulted to have Landscape AND Portrait. If you are using landscape only, you must make a new NSSet with ADBannerContentSizeIdentifierLandscape

iAdView.requiredContentSizeIdentifiers = [NSSet setWithObjects:ADBannerContentSizeIdentifierLandscape, nil];

After doing this, the test ad with show up correctly.

like image 1
Chris Avatar answered Oct 16 '22 20:10

Chris