title: Pause SpriteKit Scene When Clicking on iAds
body: <p>I am working on a <code>SpriteKit</code> project and I'm struggling to pause the game when the iAd is clicked, and unpause when the <code>iAd</code> is dismissed. The main problem is pausing the Scene from the ViewController, I know that if I want to pause the Scene from the <code>Scene.m</code> I should use the code</p>
  
  <pre><code>    self.scene.view.paused = YES;
  </code></pre>
  
  <p>however this code doesn't work in the ViewController.</p>
  
  <pre><code>- (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave
  {
  //pause game
  }
  
  - (void)bannerViewActionDidFinish:(ADBannerView *)banner
  {
  //unpause game
  }
  </code></pre>
  
  <p>I know that I would like to pause the game in the section above but I'm having trouble finding the resources to know how to perform this. Any help is appreciated, thanks.</p>