UIButton(FWApplication)

@interface UIButton (FWApplication)

/// 开始按钮倒计时,从window移除时自动取消。等待时按钮disabled,非等待时enabled。时间支持格式化,示例:重新获取(%lds)
- (dispatch_source_t)fw_startCountDown:(NSInteger)seconds title:(NSString *)title waitTitle:(NSString *)waitTitle NS_REFINED_FOR_SWIFT;

@end

Undocumented

  • 开始按钮倒计时,从window移除时自动取消。等待时按钮disabled,非等待时enabled。时间支持格式化,示例:重新获取(%lds)

    Declaration

    Objective-C

    - (nonnull dispatch_source_t)fw_startCountDown:(NSInteger)seconds
                                             title:(nonnull NSString *)title
                                         waitTitle:(nonnull NSString *)waitTitle;