tags:

views:

22

answers:

1

Hi!

I have very custom TableView like Add Contact View in iPhone's Contacts. I like the way this view arrange rows in animation when I click Edit button.

My table view has for example 2 rows of editable information and 6 rows non-editable. I wrote some code and this 6 non-editable rows disappear from screen when user click my custom Edit button. But its very "flat" and not interesting. Its just remove rows and reloadData then;

I want to add some nice animation in process of removing cell and appearing back after "Done" click.

I can't use standard "setEditing animated" because my view custom and I don't need insert or delete rows - i just edit information in it;

Thanks :)

A: 

oh i think i found it in documantation )

[tv beginUpdates]; 
[tv insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationRight]; 
[tv deleteRowsAtIndexPaths:deleteIndexPaths withRowAnimation:UITableViewRowAnimationFade]; 
[tv endUpdates];