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

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

    You're releasing newViewController.

    While the adding the newViewController.view as a subview will retain the view, the newViewController object will have a retain count of 0.

提交回复
热议问题