title: UIWebview integration in Cocos2d game?
body: <p>i am developing a small game in which i am <strong>integrating ads in a UIWebview</strong>. Since a UIKit object i am having difficulties in adding it to a Cocos2d layer. its simple enough to add it to one layer but the Webview takes time to load. Meanwhile as i move to some other class the UIWebview loads and gets added to that particular CCLayer class,to remove them in the very same class i use</p>
  
  <pre><code>[webViewH stopLoading];
  [webViewF stopLoading];
  
      webViewF.hidden=YES;
  webViewH.hidden=YES;
  
  [webViewH removeFromSuperview];
  [webViewF removeFromSuperview];
  </code></pre>
  
  <p>but my app gets killed as soon as i move to the other class giving error with NSZombieEnabled -- <strong>Webview:didCommitLoadForFrame or sometimes Webview:didclearwindowObject</strong>. i guess its still loading in the previous class while i have removed it from superview so app gets killed?? what am i possibly doing wrong??</p>