touchesBegan not called in UIView subclass

前端 未结 2 2068
一个人的身影
一个人的身影 2021-01-17 18:54

I know there already are some questions about this but I couldn\'t find a solution. There is a very simple code that works just fine on one of my projects but not on an anot

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-17 19:23

    Maybe some of the superviews has the userInteractionEnabled set to "false"?

提交回复
热议问题