title: iAd banner changes the frame.size of my SKScene
body: <p>The first time a user clicks on an iAd banner, it displays correctly and then go back to my game.
  The second click actually makes the ad behave as if it was in landscape mode:
  So the right side of the view is aligned to the real right side of the tablet, as judged by the "nodes and fps" indicator.
  But the dimension of the view is now 1024*768 instead of 768*1024.</p>
  
  <p>Therefore, the center of the scene is almost at the left edge of the iPad!</p>
  
  <p>I tried changing it programmatically in the delegate for bannerAds, without success. Indeed, the size value actually changes, but not my screen!</p>
  
  <pre><code>var currentOrientation:UIDeviceOrientation=UIDeviceOrientation.Portrait
  var oldFrameSize:CGSize?
  
  func bannerViewActionShouldBegin(banner: ADBannerView!, willLeaveApplication willLeave: Bool) -&gt; Bool {
  
      //pause game here
  
      currentOrientation=UIDevice.currentDevice().orientation
  
      oldFrameSize=self.frame.size
      println("Leave the application to the Ad")
  
      return true
  }
  
  func bannerViewActionDidFinish(banner: ADBannerView!) {
  
      UIDevice.currentDevice().setValue(currentOrientation.rawValue, forKey: "orientation")
  
      switch(currentOrientation){
      case UIDeviceOrientation.Portrait:
          self.view?.window?.rootViewController?.setValue(UIInterfaceOrientation.Portrait.rawValue, forKey: "interfaceOrientation")
          break
      case UIDeviceOrientation.PortraitUpsideDown:
          self.view?.window?.rootViewController?.setValue(UIInterfaceOrientation.PortraitUpsideDown.rawValue, forKey: "interfaceOrientation")
          break
      default: break;
      }
  
  
      self.size=oldFrameSize!
  
      self.view?.clipsToBounds=true
      println(frame.size.width)
      println(oldFrameSize!.width)
      println(size.width)
  
  
      println("Close the Ad")
  
  }
  </code></pre>
  
  <p>EDIT: here are snapshot of the differences between the first Ad display, and the second Ad display:</p>
  
  <p><img src="https://i.stack.imgur.com/XWuny.png" alt="First Ad"></p>
  
  <p><img src="https://i.stack.imgur.com/dXbNX.png" alt="Second Ad"></p>