title: Force ADBannerView to rotate (Not "orientation" but actual transform)
body: <p>this is NOT a how do I force orientation of my app question as it might look like. </p>
  
  <p>My problem is probably very simple, but it is hard to describe it so here goes.</p>
  
  <p>I am trying to implement iAd to my iphone game. This is not a problem, it was a 10 minute fix, just follow tutorials on the web. However, my game was programmed by a contractor since I can't program very well and he made the game translated to landscape orientation instead of oriented to landscape. This has leads to some problems for me when trying to rotate the ads correctly.</p>
  
  <p>Bottom line is that CGRect which is what iAd uses does simply not have the transform function so no matter what I do the ads are standing on their side. This is quite natural since the app doesn't know that the game is meant to be played in landscape. </p>
  
  <p>After a full day of research it seems that I need to put my iAd CGRect in a different view and rotate that view using the CGAffineTransformMakeRotation. My really big problem is that I am not good enough at Objective-C to actually do that.</p>
  
  <p>So can you help me how I should be able to apply transform to my ad?</p>
  
  <p>Code below compiles and shows the ad but standing on its side (when holding the game in landscape)</p>
  
  <pre><code>//iAD starts
  // lower right:-136, 295, 320, 32    lower left:-136, 135, 320, 32   upper right:136, 295, 320, 32
  // *Controller becomes a UIViewController
  UIViewController *controller = [[UIViewController alloc] init];
  controller.view.frame = CGRectMake(100, 100, 320, 32);
  //controller.view.transform = CGAffineTransformMakeRotation(M_PI / 2.0); // turn 180 degrees
  NSLog(@"*controller");  
  
  
      //adView becomes a CGRectZero called adView
  adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
  //adView.frame = CGRectOffset(adView.frame, 0, 0);
  adView.requiredContentSizeIdentifiers = [NSSet setWithObjects:ADBannerContentSizeIdentifierLandscape,ADBannerContentSizeIdentifierPortrait,nil];
  adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
  [self.view addSubview:adView];
  
  
  adView.delegate=self;
  
  //self.bannerIsVisible=NO;
  
  // iAD ends
  </code></pre>
  
  <p>Best regards
  Marcus</p>