【问题标题】:Subclassing UIControls for iPhone子类化 iPhone 的 UIControls
【发布时间】:2009-02-16 14:56:38
【问题描述】:

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

【问题讨论】:

    标签: iphone uicontrol


    【解决方案1】:

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

    重写现有子类的sendAction(_:to:for:) 方法以观察或修改动作方法对控件关联目标的调度

    重写beginTracking(_:with:)continueTracking(_:with:)endTracking(_:with:)cancelTracking(with:)方法来跟踪控件中发生的触摸事件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多