Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作与选择或突出显示UITableViewCell时相同的效果。UITableViewCell我想手动隐藏背景颜色UILabel并在需要时恢复它。
UITableViewCell
UILabel
子类,根据传递给方法的值UILabel覆盖和更改标签的背景颜色。setHighlighted:
setHighlighted: