Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

namanhams

macrumors regular
Original poster
Jun 3, 2009
153
0
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
Code:
[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.
 

jnoxx

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

Code:
- (void) setEditing:(BOOL)editing animated:(BOOL)animated
{
    
	[super setEditing:editing animated:animated];
    [self.tableView setEditing:editing animated:animated];
}

Code:
    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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.