FWControlWrapper

@interface FWControlWrapper : FWViewWrapper

Undocumented

FWBlock

  • 添加事件句柄

    Declaration

    Objective-C

    - (nonnull NSString *)addBlock:(nonnull void (^)(id _Nonnull))block
                  forControlEvents:(UIControlEvents)controlEvents;
  • 根据唯一标志移除事件句柄

    Declaration

    Objective-C

    - (void)removeBlock:(nullable NSString *)identifier
        forControlEvents:(UIControlEvents)controlEvents;
  • 移除所有事件句柄

    Declaration

    Objective-C

    - (void)removeAllBlocksForControlEvents:(UIControlEvents)controlEvents;
  • 添加点击事件

    Declaration

    Objective-C

    - (void)addTouchTarget:(nonnull id)target action:(nonnull SEL)action;
  • 添加点击句柄

    Declaration

    Objective-C

    - (nonnull NSString *)addTouchBlock:(nonnull void (^)(id _Nonnull))block;
  • 根据唯一标志移除点击句柄

    Declaration

    Objective-C

    - (void)removeTouchBlock:(nullable NSString *)identifier;