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

前端 未结 5 1585
旧巷少年郎
旧巷少年郎 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:28

    Lol well this was dumb solution, but in the xib I had it linked to buttonTouchUp outside, and that was causing the problem. Maybe this will help :)

提交回复
热议问题