通过哪些方法可以扩展UIControl属性?
答案 0 :(得分:0)
这应该有助于事情的发展:
https://developer.apple.com/documentation/uikit/uicontrol#1968627
覆盖现有子类的
sendAction(_:to:for:)
方法,以观察或修改将操作方法分派给控件的关联目标覆盖
beginTracking(_:with:)
,continueTracking(_:with:)
,endTracking(_:with:)
和cancelTracking(with:)
方法,以跟踪控件中发生的触摸事件。