I am creating a calender app right now and I used a bunch of UITextFields to make up the content of the table view cell. I want to get the tableView cell number that it is in so I could save it to var events: [Dashboard] = []
because now everytime I add a new cell, it clears it all. I did try using EditingDidEnd
func tableView(_ tableView: UITableView, didEndEditingRowAt indexPath: IndexPath?) {
let getIndexPathOfSelectionDelageteInstance: getIndexPathOfSelectionDelagete! = nil
getIndexPathOfSelectionDelageteInstance.IndexpathValue(theTitle: (indexPath?.row)!)
}
but it dosen't work .It dosent even get called. I am assuming that manipulating something in the table view does not count as editing it.
Can someone help me? Thanks.