title: Animation UIView from UITableView
body: <p>I have one table view and one imageview, each one takes half of the screen.
  I am trying to animate an image view when the user swipes on the imageview and when table cell is selected.</p>
  
  <p>I use this code:</p>
  
  <pre><code>@interface X()
  @property (strong, nonatomic) IBOutlet UIImageView *ImagePreview;
  @property (strong, nonatomic) IBOutlet UITableView *table;
  @end
  
  @implementation X
  - (void)handleGestureRight:(UISwipeGestureRecognizer *)sender {
          [self ShowAnimation:_ImageGalaryPreview];
  }
  -(void)ShowAnimation:(UIImageView *)view{   
              [UIView beginAnimations: @"Slide Image" context: NULL];
                  [UIView setAnimationDuration: 1];
                  [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:view cache:NO];
                  [UIView commitAnimations];
  }
  @end
  </code></pre>
  
  <p>It works perfect when I call it after the swipe but when I call it from <code>UITableView</code> class instance it does not work!</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
     [self ShowAnimation:_ImageGalaryPreview];
  }
  </code></pre>
  
  <p><strong>Can anyone tell me why ?!</strong></p>