title: How to hide or remove the UIwebview when a action is done?
body: <p>I have two <code>IBActions</code>. In one action I am loading the <code>UIWebview</code> to display a <code>PDF</code> File from my bundle. On clicking the other button the whole <code>UIWebView</code> should get removed from superview.</p>
  
  <p>I have tried using:</p>
  
  <p><code>[webview removeFromSuperview];</code> </p>
  
  <p>and </p>
  
  <p><code>webview.hidden=YES;</code> </p>
  
  <p>Neither of these are working. They are hiding my <code>UIWebView</code> for a second, but then it appears again.</p>
  
  <p>Is is
  I have created UIWEBVIEW programatically and added the UIWebvieWDelegate in the interface file. But when initializing the UIWebView I didnt set webview.delegate=self; Is it the problem?</p>