title: Overriding removeFromSuperview
body: <p>I am trying to override removeFromSuperview for a custom view i created. The view is intended to contain a UIActivityIndicatorView and i managed to animate its appearance successfully overriding the initWithFrame method. Now i would like to override also its removeFromSuperview adding in it a fade out animation so that from the view controller i can simply call <code>[self.loadingView removeFromSuperview];</code> Unfortunately the loadingView is removed without the animation, probably because of the <code>[super removeFromSuperview];</code> i need to call when overriding. Here is the code i'm using, is there a way i can fix it?</p>
  
  <pre><code>-(void)removeFromSuperview
  {
  [super removeFromSuperview];
  [UIView animateWithDuration:0.5
                   animations:^{self.alpha = 0.0;}
                   completion:^(BOOL finished){[self removeFromSuperview];}];
  }
  </code></pre>