我有一个自定义 UITableViewCell
子类,我想显示突出显示状态但不显示选择状态。
如何在触摸时突出显示 UITableViewCell
背景(并在释放时取消突出显示),但不显示选择状态单元格背景(我有自己的自定义选择状态)?
最佳答案
@implementation CustomTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// You have your code here as you said
}
- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
{
//Implement custom hilighting code
}
@end
关于ios - 突出显示 UITableView 而不选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45656901/