我有UITableViewCell的子类。它向基本视图添加了一些额外的元素(通过xib),
但它不能生效。
自定义UITableViewCell无法设置选定的背景色
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
以上两种设置都无法生效。
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.selectionStyle = UITableViewCellSelectionStyleGray;
其他两种背景风格可以生效。我很困扰。
非常感谢 – soapbar 2014-10-02 22:20:21