Overriding isHighlighted still changes UIControlState - why?
问题 In a UIControl , if I override isHighlighted to set a private _isHighlighted property, and then check the control's state to see if it contains .highlighted , the state still accurately reflects the change. See code below. My question is, how is this possible? I never call super.isHighlighted or manipulate the state property. state is an OptionSet that must have the .highlighted property inserted into the set, which, from what I can determine, does not, or should not, happen if I override the