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

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

    You mentioned saving; did you save both the xib and your MyViewController files after you made your changes? Often when something like this stops working for me, I find that I didn't save either the xib in IB or the class file in XCode.

提交回复
热议问题