title: shaking tableviewcell in iOS
body: <p>I am trying to Animate the <code>cell</code> when did select the row at <code>indexPath</code> and I am succeeded with this code in <code>didSelectRowAtIndexpath</code> method</p>
  
  <pre><code>TableViewCell1 *cell = (TableViewCell1 *)[tableView cellForRowAtIndexPath:indexPath];
  
  CABasicAnimation *shake = [CABasicAnimation animationWithKeyPath:@"position"];
  [shake setDuration:0.1];
  [shake setRepeatCount:3];
  [shake setAutoreverses:YES];
  [shake setFromValue:[NSValue valueWithCGPoint:
                       CGPointMake(cell.center.x - 5,cell.center.y)]];
  [shake setToValue:[NSValue valueWithCGPoint:
                     CGPointMake(cell.center.x + 5, cell.center.y)]];
  [cell.layer addAnimation:shake forKey:@"position"];
  </code></pre>
  
  <p>but in storyBoard with segue method this Animation Was Disappear, and when I clicked the row it will directly go to next view.</p>
  
  <p>my requirement is when I clicked row the particular row should shake 3 themes and after that it go to next view. please any one Help me...</p>