I got this iPhone app where I use AdWhirl to change between a number of ad networks. Now when iAds gets its turn in and the phone is in landscape orientation before the ad shows it will display the normal portrait iAd. If I then turn the phone to portrait and back to landscape it shows the correct longer and thinner landscape version of the iAd.
So why is it displaying the small version if the phone is in landscape mode before showing the ad?
It was as simple as just turning it whenever I receive a new ad:
- (void)adWhirlDidReceiveAd:(AdWhirlView *)adWhirlView {
[adWhirlView rotateToOrientation:self.interfaceOrientation];
[self adjustAdSize];
}
Related
My App is designed to work on both portrait and landscape mode.
If the App is started on portrait mode, everything works as expected. And you can rotate to any other orientation without problems.
But if started in landscape mode, unexpected things happen.
First: about a third of the right display does not react to touches. Any buttons on this side are not working.
Second: Change orientation to portrait mode will not update the screen correctly. The page layout remains the same as in landscape mode, but is rotated and centered. The right and left sides are cut off.
The problem seems to occur only on some user-devices. On my devices and on simulator everything is in order.
My current app is landscape only.
I display an iAd banner in bottom area of screen. It's showing correctly in landscape mode.
However tapping it, the ad content screen is sliding in from the right when holding landscape right and from the left when holding landscape left. The ad content screen is always displayed in portrait mode. Is there no way to display ad content screen in landscape mode?
Using iOS 6+.
This is similar but seems to deal with acceleration etc. My app does not rotate except between the two landscape modes. (and actually it seems that that topic is about the banner itself, not the opening ad content screen)
Landscape iAd is showing the portrait graphic in iOS6?
Edit: Apple's iAdSuite seems to do the same. The apps support portrait modes too, but in landscape mode, tapping on an landscape ad the opening ad content is in landscape mode.
http://developer.apple.com/library/ios/samplecode/iAdSuite/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010198
It looks like this is by design(?) hmmm... not pretty
I can't confirm it but it just seems that there is no landscape ad content.
I have an universal project, and want to keep landscape from very beginning of star-up for iPhone and portrait for Pad. How can I do it?
That's not possible. iPhone apps always have to start in Portrait orientation. Any game you see that has landscape-only display is still starting showing a portrait default image and the root view controller then can be landscape-only.
On iPad you can restrict the app orientation to Landscape and also have it start in Landscape.
The iPhone restriction is enforced by Apple and they won't approve an iPhone app that restricts itself to Landscape start.
If the device is already in landscape position it will start as landscape, but if you want your program to work always in landscape position and never flip to portrait, you have to set the orientation to landscape in each class you create:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscape || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
}
I am opening an url in my universal application in a web view with orientation enabled, in portrait orientation first time the website load properly but when I change the orientation from portrait to landscape its working properly but when come back from landscape to portrait the website's contents of bottom dose not load, its working properly in iPod's, and iPhone both orientation properly but only iPad portrait orientation the bottom content dose not load when I change orientation, and when I open this url in my iPad safari browser all things working properly, please help me someone.
Thanks in Advance,
Rameshu
I've implemented to an landscape-oriented application an iAdBannerView.
Works fine, but always the full banner view pops-up from the bottom of the device (like from portrait orientation).
Is it possible to make the full banner view pop-up from the bottom of the device on landscape orientation?
Thanks.