Delay of button's highlighted state

前端 未结 3 989
一整个雨季
一整个雨季 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条回答
  •  花落未央
    2021-02-05 18:41

    I know it's been a long time, but I just faced a similar issue:

    • My UIButton is a subview of UINavigationController.view
    • There's no delay on the simulator
    • But there's a delay to show the highlight on the device

    I just found out that it only happens if I run the app from Xcode. If I disconnect the device and open the app from it's icon everything works just fine.

    I hope it helps.

提交回复
热议问题