In the root page, want to delete Tableviewcell, there is a certain order
First, delete the data in the database Sqlite3 , then delete the data in the array, and finally delete the cell
Generally we know that deleting a cell after deleting the array data, because if the cell is deleted before deleting the array, then the method in delegate-(Nsinteger) TableView: (UITableView *) TableView Numberofrowsinsection: (Nsinteger) Section
has been executing, when the number of the array is not changed, the cell is reduced by one time, will be error. So, first delete the elements in the array, and then delete the cell.
Then, with SQLite3 , the number of arrays is based on the results of sqlite3 execution, and the number of array elements determines the number of cells,
So, the order of deletion should be : delete data in SQLite 3 database ----delete data in array----delete cell
Use Sqlite3 for TableView to remove a cell