Posted: 1st Nov 2011 15:38
it always show in portrait form,no matter what api I use. I mean it's always on the left.

I want to rotate it ,and resize it , to make it in the proper position.

my game had finished, I just wanner add iAds on it.

can anyone give me a hand?
Posted: 1st Nov 2011 15:56
Here's some code I used in iDork to rotate and position iAds:

#define DEG 0.0174532925
#define DEGREES_TO_RADIANS(__ANGLE__) ((__ANGLE__) / 180.0 * M_PI)

adView = [ [ ADBannerView alloc ] initWithFrame: CGRectZero ];

adView.requiredContentSizeIdentifiers = [ NSSet setWithObject:ADBannerContentSizeIdentifier480x32 ];
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier480x32;

CGSize windowSize;

windowSize.width = 480;
windowSize.height = 320;

adView.transform = CGAffineTransformMakeRotation ( DEGREES_TO_RADIANS ( 90 ) );
adView.center = CGPointMake ( adView.frame.size.width / 2, windowSize.width / 2 );

self.adView.delegate = self;

adView.hidden = YES;
Posted: 1st Nov 2011 16:28
Let us know if it works Halley, this would be a very useful piece of code.
Thanks Mike for being so prompt & helpful.
Posted: 1st Nov 2011 16:41
it works . I just put the code into my game.
Posted: 1st Nov 2011 18:18
Will try to test it. thanks guys, hope to see more of this kind of useful code snippets. If we have more of these, we won't bother TGC with new commands!!!!!