farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

How to enable landscape mode for iAd? #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I managed to rotate the banner view(see the code below)
2.But after clicking it,the iAd i received is displayed in portrait mode.
3.

What is the expected output? What do you see instead?
I want to set the iAd i received after clicking the banner view is displayed in 
landscape mode.

What version of the product are you using? On what operating system?
iOS SDK 3.2.5.

Please provide any additional information below.

I'm trying to integrate AdWhirl in my game.I managed to rotate the banner 
view,but after i click on it,the ad i received is displayed in portrait mode.Is 
there any way i can change it to landscape mode?I tried some method searched 
from internet,but doesn't work.
The following is what i did:

        [adView setHidden:NO];
    CGAffineTransform cgCTM = CGAffineTransformMakeRotation(CC_DEGREES_TO_RADIANS(90));
    cgCTM = CGAffineTransformTranslate(cgCTM,0,0);
    [adView setTransform:cgCTM];
    [adView setCenter:CGPointMake(120, 160)];
    [adView setBounds:CGRectMake(0, 0, 320, 50)];
    [[[Director sharedDirector] openGLView] addSubview:adView];

where adView is a AdWhirlView declared in the header file.

Any hint will be highly appreciated.

Original issue reported on code.google.com by Kerry.We...@gmail.com on 8 Dec 2010 at 1:28

GoogleCodeExporter commented 9 years ago
Sorry,i mean iOS SDK 2.6.2

Original comment by Kerry.We...@gmail.com on 8 Dec 2010 at 1:33

GoogleCodeExporter commented 9 years ago
You can already show the banner in landscape. Please see the documentation for 
details.

But It sounds like you want the landing page, i.e. the full screen interactive 
ad, to be in landscape. I'm sorry but we can't help you there as the landing 
page is created and controlled by Apple and their advertisers.

In any case, there's nothing we can do here.

Original comment by nigelc...@google.com on 8 Dec 2010 at 6:06