Native Contact app : how they make the animation ?

Discussion in 'iOS Programming' started by namanhams, Jul 29, 2011.

  1. namanhams macrumors regular

    Jun 3, 2009
    Regarding the iPhone native Contact app, when you are in a contact detail view, you click the edit, it will do some nice animation and fade into edit mode.

    I'm trying to do something similar but not successful so far.
    Clearly, it's not simply calling
    [UITableView setEditing:animated:] 
    , because it's almost totally unrelated table in edit mode.

    I also try to insert/delete row/section animated, but not successful.

    Anyone can give me a hint ? Thanks.
  2. jnoxx macrumors 65816


    Dec 29, 2010
    Aartselaar // Antwerp // Belgium
    what you are saying there is wrong.
    have you tried using the self.accessor for your tableView?

    - (void) setEditing:(BOOL)editing animated:(BOOL)animated
    	[super setEditing:editing animated:animated];
        [self.tableView setEditing:editing animated:animated];
        NSIndexPath *indexie = [self.tableView indexPathForSelectedRow];
        NSIndexPath *index = [NSIndexPath indexPathForRow:indexie.row+1 inSection:0]; 
        NSArray* lastIndex = [NSArray arrayWithObject:index];
    [self.tableView insertRowsAtIndexPaths:lastIndex withRowAnimation:UITableViewRowAnimationTop];
    ACtually you are able to find all of it on google too.

Share This Page