First of all, much gratitude to atebits for their very informative blog post Fast Scrolling in Tweetie with UITableView. The post explains in detail how
How are you moving the text around currently? Or more specifically, in which UITableViewCell method are you performing the move?
From my experience, overriding the layoutSubviews
method and setting the frame here will automatically be wrapped in an animation.
Eg:
- (void)layoutSubviews {
if (self.editing) {
[titleLabel setFrame:CGRectMake(62, 6, 170, 24)];
}
else {
[titleLabel setFrame:CGRectMake(30, 6, 200, 24)];
}
[super layoutSubviews];
}