i have a simple question. I have a UITableView in which you can add and delete cells. If the first tableViewCell is deleted i want something else to happen. How could i test to see if the FIRST cell has been deleted via using an if statement?
if(//how do i test?)
{
//DO SOMETHING HERE!!
}
Thanks for the help everyone!
I assume that you already have a reference to the UITableViewCell that you are about to delete and the UITableView that it lives in. If so, just do
and look at indexPath.row to determine the row. Note that you’ll have to do this prior to the cell actually being deleted/removed from the table view.