Add/Delete UITableViewCell with animation?

前端 未结 4 797
深忆病人
深忆病人 2020-12-04 15:34

I know this might sound like a dumb question, but I have looked every where. How can I do this?

I know how to do this with a swype-to-delete method, but how cam I do

4条回答
  •  执笔经年
    2020-12-04 15:55

    You want these two methods: insertRowsAtIndexPaths:withRowAnimation: and deleteSections:withRowAnimation: They are both detailed in the UITableView documentation.

提交回复
热议问题