PDA

View Full Version : anyone else find the animation is really clunky when reorder table view rows?




fenrus110
Oct 9, 2008, 12:50 PM
I pretty much followed Table View Controller Programming guide. And it's not like a lot of code.

- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *) { return YES; }

and moveRowAtIndexPath is only executed once when you release your finger.

It looks very smooth on the simulator, but on the device, I find the animation rather clunky. When you reorder the rows in the Safari Bookmarks, I find that less clunky.



PhoneyDeveloper
Oct 9, 2008, 02:51 PM
The slowness of animations is related to how many views are being animated. If your cells have a lot of subviews that will make things slower.

fenrus110
Oct 9, 2008, 03:01 PM
hm.. I'm not doing anything special. I'm using the exact code given when you create a UITableViewController subclass in XCode.

In the cellForRowAtIndexPath, I just updated the

cell.text = [[someArr objectAtIndex:indexPath.row] title];

where title is just an NSString