Obj-C iOS Delete UITableViewCell
===

Im trying to delete a UITableViewCell from a table. I am having a problem because sometimes the cell that I want to delete has been scrolled off the screen and potentially recycled. I get the following error:

>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]

The delete method works perfectly if the deleted cell is visible in the tableview.

Does anyone know how to solve this?

Thanks