title: Animating custom-drawn UITableViewCell when entering edit mode
body: <h3>Background</h3>
  <p>First of all, much gratitude to <a href="http://www.atebits.com" rel="noreferrer">atebits</a> for their very informative blog post <a href="http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview" rel="noreferrer">Fast Scrolling in Tweetie with UITableView</a>.  The post explains in detail how the developers were able to squeeze as much scrolling performance as possible out of the UITableViews in <a href="http://www.atebits.com/tweetie-iphone" rel="noreferrer">Tweetie</a>.</p>
  <h3>Goals</h3>
  <p>Beginning with the source code linked from the blog post (<a href="http://atebits.cachefly.net/blog/FastScrolling/FastScrolling.zip" rel="noreferrer">original</a>) (<a href="http://github.com/adamalex/fast-scrolling/tree/c335d04f2fcf9ecd2c92935fc73ff09d89569e15" rel="noreferrer">my github repo</a>):</p>
  <ol>
  <li><p>Allow a UITableView using these custom cells to switch to edit mode, exposing the UI for deleting an item from the table. (<a href="http://github.com/adamalex/fast-scrolling/commit/9fa66a3ecb9c98bcc3ed4bd5cf26a7b6825b5ffb" rel="noreferrer">github commit</a>)</p>
  </li>
  <li><p>Move the cell's text aside as the deletion control slides in from the left.  This is complete, although the text jumps back and forth without animation. (<a href="http://github.com/adamalex/fast-scrolling/commit/eb88ffd7af320cd55eda230f204251644dca4fbf" rel="noreferrer">github commit</a>)</p>
  </li>
  <li><p><em>Apply animation to the text movement in goal 2 above for a smooth user experience.  This is the step where I became stuck.</em></p>
  </li>
  </ol>
  <h3>The Question</h3>
  <p>What is the best way to introduce this animation to complete goal 3?  It would be nice if this could be done in a manner that keeps the logic from my <a href="http://github.com/adamalex/fast-scrolling/commit/eb88ffd7af320cd55eda230f204251644dca4fbf" rel="noreferrer">last commit</a> because I would love the option to move the conflicting part of the view only, while any non-conflicting portions (such as right-justified text) stay in the same place or move a different number of pixels.  If the above is not possible then undoing my last commit and replacing it with an option that slides the entire view to the right would be a workable solution also.</p>
  <p>I appreciate any help anyone can provide,  from quick pointers and ideas all the way to code snippets or github commits.  Of course you are welcome to fork <a href="http://github.com/adamalex/fast-scrolling/tree/master" rel="noreferrer">my repo</a> if you would like.  I will be staying involved with this question to make sure any successful resolution is committed to github and fully documented here.  Thanks very much for your time!</p>
  <h3>Updated thoughts</h3>
  <p>I have been thinking about this a lot since my first post and realized that moving some text items relative to others in the view could undo some of the original performance goals solved in the original blog post.  So at this point I am thinking a solution where the entire single subview is animated to its new postion may be the best one.</p>
  <p>Second, if it is done in this way there may be an instance where the subview has a custom color or gradient background.  Hopefully this can be done in a way that in its normal position the background extends unseen off to the left enough so that when the view is slid to the right the custom background is still visible across the entire cell.</p>