Okay so I'm trying to make a "-" button delete a UICollectionViewCell, but I can't seem to find anything that can help me out, I'm just a beginner. Any help would be greatly appreciated, I'm also using core data
Asked
Active
Viewed 219 times
-2
-
Look [here](https://stackoverflow.com/a/32068382/3687801) – nayem Jun 22 '17 at 02:58
-
Possible duplicate of [Set up a UICollectionView delete button in Swift](https://stackoverflow.com/questions/32068216/set-up-a-uicollectionview-delete-button-in-swift) – nayem Jun 22 '17 at 02:58
1 Answers
1
you just remove your data of data array and do tableView.reloadData()
. May as below.
dataArray.remove(at: indexPath.row)
tableView.reloadData()

ovo
- 1,904
- 13
- 26