// // YMCaptchaCountdownButton.h // yuemoClient // // Created by YoMi on 2023/11/15. // #import NS_ASSUME_NONNULL_BEGIN @class YMCaptchaCountdownButton; typedef NSString * _Nullable (^CountDownChanging)(YMCaptchaCountdownButton *countDownButton,NSUInteger second); typedef NSString * _Nonnull (^CountDownFinished)(YMCaptchaCountdownButton *countDownButton,NSUInteger second); typedef void (^TouchedCountDownButtonHandler)(YMCaptchaCountdownButton *countDownButton,NSInteger tag); @interface YMCaptchaCountdownButton : UIButton @property(nonatomic,strong) id userInfo; ///倒计时按钮点击回调 - (void)countDownButtonHandler:(TouchedCountDownButtonHandler)touchedCountDownButtonHandler; //倒计时时间改变回调 - (void)countDownChanging:(CountDownChanging)countDownChanging; //倒计时结束回调 - (void)countDownFinished:(CountDownFinished)countDownFinished; ///开始倒计时 - (void)startCountDownWithSecond:(NSUInteger)second; ///停止倒计时 - (void)stopCountDown; @end NS_ASSUME_NONNULL_END