title: Remove Subview from Superview
body: <p>I am really stuck in this issue for quite a long time</p>
  
  <p>I am trying to add a <code>UIControl</code> (which is a <code>UIView</code> in the end) to a <code>UITableViewCell</code> that i have subclasses in my own class (i made a custom cell)</p>
  
  <p>on swipe, i create my <code>UIControl</code> class and add it to myself (the cell), so far so good. Here is the code</p>
  
  <pre><code>[self addSubview:_statusView];
  </code></pre>
  
  <p>However, i am adding a target action to my <code>UIControl</code> in the custom cell, so that the cell can handle when the <code>UIControl</code> says that he has recognized a touchDownEvent.</p>
  
  <pre><code>[self.statusView addTarget:self action:@selector(resetAll:) forControlEvents:UIControlEventTouchDown];
  </code></pre>
  
  <p>And here is what i want to do in the action, I want to remove that <code>UIControl</code> from <code>self.subviews</code> (the cell's subviews), so i set the action method to be like this</p>
  
  <pre><code>- (void)resetAll:(id)sender
  {
  for (UIView *view in self.subviews) {
      if ([view isKindOfClass:[StatusView class]]) {
          [view removeFromSuperview];
      }
  }
  }
  </code></pre>
  
  <p>Can someone point out whats wrong in this code? because i can't really figure out why the view that gets added to the cell does't get removed. It seem to me the the subviews property doesn't ever contain my <code>UIControl</code> that i add. </p>