I was wondering how I could unselect an object from my UITableView. One of the cells is highlighted, or selected, and I want to unselect it so that none of the UITableView cells are selected. How could I do this?
You can do this:
[yourTableView deselectRowAtIndexPath:[yourTableView indexPathForSelectedRow] animated:NO];
If you gain a reference to the cell, you can also call
cell.selected = NO;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With