What's the difference between UIControlStateHighlighted and UIControlStateSelected?

后端 未结 4 1401
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 19:21

I am trying to set a state for UIButton.

But i don\'t know the difference between the UIControlStateHighlighted and UIControlStateSelected.

4条回答
  •  别那么骄傲
    2021-02-05 19:33

    • UIControlStateHighlighted = it highlights the button with some flash(in button background) when the user taps.

    • UIControlStateSelected = it highlights nothing to that button.

提交回复
热议问题