App crashes when i try to delete a row in TableView iOS swift
Solution:
If you are tried to delete the row and not delete the element from array it will be occurres.
So first you have to execute the delete row code then remove the indexpath.row element from array then reload the table.It will works
If you are tried to delete the row and not delete the element from array it will be occurres.
So first you have to execute the delete row code then remove the indexpath.row element from array then reload the table.It will works
Comments
Post a Comment