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 se开发者_运维技巧lected. 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;
精彩评论