1

My table view cell appears misaligned after swipe.

screenshot

Here's tableView function:

func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
    if (editingStyle == UITableViewCellEditingStyle.Delete) {
        // handle delete (by removing the data from your array and updating the tableview)
        deleteItemFromCart(indexPath)
    }
}

I am using custom cell which looks like this with constraints: custom cell

I had a look at this question, but it didn't help me.

Community
  • 1
  • 1
saurabh
  • 6,687
  • 7
  • 42
  • 63

0 Answers0