anyone else find the animation is really clunky when reorder table view rows?

Discussion in 'iOS Programming' started by fenrus110, Oct 9, 2008.

  1. fenrus110 macrumors regular

    Joined:
    Mar 24, 2008
    #1
    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.
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    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.
     
  3. fenrus110 thread starter macrumors regular

    Joined:
    Mar 24, 2008
    #3
    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
     

Share This Page