How to unselect an object from a UITableView?
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;
加载中,请稍侯......
精彩评论