开发者

Want some animation in custom UITableView edit mode

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开发者_C百科 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 :)


oh i think i found it in documantation )

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜