Remove UITableView Cell Using Animation

I want to remove a UITableView cell, but with animation. I need animation as described below:

You need to draw a content string with a UITableViewCell, and when my touch is finished, the content will disappear, and after that the cell will be deleted. You can get a view from the image attached here. enter image description here

I thought to achieve this with this thread:

  • I need to draw a string on content using CoreGraphics
  • In - (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event I will call step3
  • Invocation - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath

Let me know if I'm wrong, or you have other alternatives.

Any help is appreciated.

+4
source share
1 answer

I just google and got the best solution from http://www.raywenderlich.com/21842/how-to-make-a-gesture-driven-to-do-list-app-part-13

check out this full tutorial that I found on the screen below: -

enter image description here

follow the link Example I hope you got your decision

in the code text below, also indicate β€œDemo” in the link, and while you move the cursor to the left to the right side of the cell, the cell is displayed in green with a horizontal line. And while you drag the cursor from left to right, then Cell Remove from Table View its amazing demo.

+2
source

All Articles