Which is better, setEnabled or setUserInteractionEnabled?

后端 未结 2 1808
名媛妹妹
名媛妹妹 2020-12-17 16:16

I want to make a UIButton disable for user touch. Both setEnabled and setUserInteractionEnabled can do this. Which is better? How are

2条回答
  •  忘掉有多难
    2020-12-17 16:47

    if something is disabled it is grayed out.

    if interaction is disabled it appears normal but you can't interact with it.

提交回复
热议问题