UIButton event 'Touch Up Inside' not working. 'Touch Down' works fine

前端 未结 5 1609
旧巷少年郎
旧巷少年郎 2020-12-09 19:45

I\'ve got a UIButton in a UIView, which is in a UIViewController that I\'ve allocated and inited from a .xib file.

When hooking an IBAction up to the \'Touch Down\'

5条回答
  •  眼角桃花
    2020-12-09 20:15

    I'm sorry for being late but I have exactly the same problem. In my case it was a UITapGestureRecognizer assigned to parent view. So, it's good idea to check for recognizers as well.

提交回复
热议问题