title: Remove Custom View from superView
body: <p>I have My own UIView :</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface MultipleSlotsClientView : UIView
  
  
  -(IBAction)didPressCloseBtn:(id)sender;
  
  @end
  </code></pre>
  
  <p>And this is the implementation:</p>
  
  <pre><code>@implementation MultipleSlotsClientView
  
  - (id)initWithFrame:(CGRect)frame {
      self = [[[[NSBundle mainBundle] loadNibNamed:@"MultipleSlotsClientView" owner:self options:nil] objectAtIndex:0] retain];
      if (self) {
          self.frame = frame;
      }
      return self;
  }
  
  #pragma mark
  #pragma mark IBAction
  
  -(IBAction)didPressCloseBtn:(id)sender {
      [self removeFromSuperview];
  }
  
  @end
  </code></pre>
  
  <p>And i have a btn that connect to the <code>didPressCloseBtn</code> method and when i press the button the method called but the View won't remove from the superview.</p>
  
  <p>This is how i alloc the UIView and add it:</p>
  
  <pre><code>MultipleSlotsClientView *multiView = [[[MultipleSlotsClientView alloc] initWithFrame:self.view.frame] autorelease];
  [self.view addSubview:multiView];
  </code></pre>
  
  <p>Any idea why the view won't disappear?</p>