title: MBProgressHUD hide from another class
body: <p>I have a class that handles request to a webservice. When this start to fetch information from the service I create and add a HUD on another class view. Like this, </p>
  
  <pre><code>HUD = [[MBProgressHUD showHUDAddedTo:viewController.view animated:YES] retain];
  </code></pre>
  
  <p>When the loading is finished I call this, </p>
  
  <pre><code>[HUD hideHUDForView:viewController.view animated:YES];
  </code></pre>
  
  <p>I set the delegate to self, </p>
  
  <pre><code>HUD.delegate = self;
  </code></pre>
  
  <p>But I can not get it to remove from the view. </p>
  
  <pre><code>- (void)hudWasHidden {
  // Remove HUD from screen when the HUD was hidded
  [HUD removeFromSuperview];
  [HUD release];
  HUD = nil;
  }
  </code></pre>
  
  <p>I want to start in one class to show on another while the first is fetching data from the webservice. Then hide i from the first class.</p>
  
  <p>Any ideas? </p>
  
  <p>EDIT:</p>
  
  <p>OK now I set the delegate in the first class to:</p>
  
  <pre><code>HUD.delegate = viewController;
  </code></pre>
  
  <p>But where do I put:</p>
  
  <pre><code>- (void)hudWasHidden {
  // Remove HUD from screen when the HUD was hidded
  [HUD removeFromSuperview];
  [HUD release];
  HUD = nil;
  }
  </code></pre>