发布于 1年前

禁止UITableView选中高亮显示

去掉UITableViewCell的Selection style即可

Objective-C

cell.selectionStyle = UITableViewCellSelectionStyleNone;

或者

[cell setSelectionStyle:UITableViewCellSelectionStyleNone];

Swift 2

cell.selectionStyle = UITableViewCellSelectionStyle.None

Swift 3

cell.selectionStyle = .none
©2020 edoou.com   京ICP备16001874号-3