title: UITableViewCell animate resize when user touchdown or tap Cell
body: <p>I want to animate a <code>UITableViewCell</code> like in the following image (<strong>The cell gets resized smaller</strong>) before detailedViewController is show. I have tried it from last two days and tried other all the answers I found for similar questions. </p>
  
  <p>I want the cell to animate/resize as soon as user put his finger on the UITableViewCell.</p>
  
  <p><img src="https://i.stack.imgur.com/uJvXU.jpg" alt="enter image description here"></p>
  
  <p>The UITableViewCell is a custom cell. I have tried setting a new frame to cell.contentView in UITableViewCell subclass's <code>setSelected:(BOOL)selected animated:(BOOL)animated</code> method.  The UITableViewCell didn't resize as I expected. </p>
  
  <p>What I have also observed is this method is called when user lifts his finger up from the UITableViewCell. Actually I want it to happen as soon as user taps the cell. And if the cell is not selected and user moves to some other cell, cell should get resized back to normal size. </p>
  
  <p>Then I did some searching on receiving touch events from UITableViewCell. And I tried to add a <code>UILongPressGestureRecognizer and UITapGestureRecognizer</code> and in the selector I tried to change cell.contentView frame like this </p>
  
  <pre><code>cell.contentView.frame = CGRectMake(cell.frame.origin.x +20, cell.frame.origin.y, cell.frame.size.width-20, cell.frame.size.height);
  [cell setNeedsDisplay];
  </code></pre>
  
  <p>But the selected  cell is only flashing(cell background) it is not resizing as I expected.</p>
  
  <p>Any suggestions would be really helpful. Thanks in advance  </p>