Delay of button's highlighted state

前端 未结 3 949
一整个雨季
一整个雨季 2021-02-05 18:11

I have the issue in two completely different situations, which makes it really weird.

  1. Situation: A UIButton in as a subView of another UIView.
  2. Situation:
3条回答
  •  梦毁少年i
    2021-02-05 18:18

    Are the UIButtons inside a UIScrollView ? If they are, the delay is there so the scrollview can determine whether the touch is for scrolling or it should be passed on to the subview.

    See also UIButton touch is delayed when in UIScrollView

提交回复
热议问题