title: Limit animation to parent view
body: <p>I have a UITableViewCell and I animate it's content out and in. But I want to limit the animation so that when the text goes outside of the UITableViewCell it's not visible in the ViewController.</p>
  
  <p>The animation itself is simple:</p>
  
  <pre><code>[UIView animateWithDuration:0.3 delay:0 options:0 animations:^
       {
         yesNew.origin.x += 200;
         noNew.origin.x += 200;
         ansLblNew.origin.x = -210;
  
        [yesButton setFrame:yesNew];
         [noButton setFrame:noNew];
         [answerLabel setFrame:ansLblNew];
  
       }completion:^(BOOL finished){
         [yesButton setHidden:YES];
         [noButton setHidden:YES];
         [answerLabel setHidden:YES];
       }];
  </code></pre>