为iPhone分类UIControls

时间:2009-02-16 14:56:39

标签: iphone uicontrol

通过哪些方法可以扩展UIControl属性?

1 个答案:

答案 0 :(得分:0)

这应该有助于事情的发展:
https://developer.apple.com/documentation/uikit/uicontrol#1968627

  

覆盖现有子类的sendAction(_:to:for:)方法,以观察或修改将操作方法​​分派给控件的关联目标

     

覆盖beginTracking(_:with:)continueTracking(_:with:)endTracking(_:with:)cancelTracking(with:)方法,以跟踪控件中发生的触摸事件。

相关问题