1、直接在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath方法中操作
cell.selectionStyle = UITableViewCellSelectionStyleNone;
2、跳转完成后返回,取消高亮状态
[self.tableView deselectRowAtIndexPath:[self.tableView indexPathForSelectedRow] animated:YES];

本文介绍了两种取消UITableView中UITableViewCell选中高亮的方法:一是在cellForRowAtIndexPath方法中设置cell.selectionStyle为None;二是返回界面时使用deselectRowAtIndexPath取消当前选中行的高亮。
1092

被折叠的 条评论
为什么被折叠?



