title: iphone dev: dynamically resize UITableView
body: <p>hey, we have a UITableView inside which we have (obviously) many UITableViewCells. We need to implement an action so that when the user touches the cell, the cell grows and shows more information. if the user touches the cell again, it resizes back to the original size.</p>
  
  <p>We were able to implement this by changing the height of the frame of the cell like this:</p>
  
  <pre><code>CGRect newFrameTemp = self.frame;
  newFrameTemp.size.height +=textHeight;
  self.frame = newFrameTemp;
  </code></pre>
  
  <p>and also moving all the other cells <code>textHeight</code> pixels down. (and also changed the size of the table itself)</p>
  
  <p>This seemed to work, only that the 'touch' events did not move together with the cells so that if I want to touch the next cell i actually need to touch the middle of the cell that we just 'opened'</p>
  
  <p>any clues on we are doing wrong?</p>