// // RQTimingView.h // XinShouJiaDao // // Created by 张嵘 on 2021/7/13. // Copyright © 2021 JCZ. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN #define RQ_TIMING_VIEW [RQTimingView sharedInstance] @interface RQTimingView : UIView ///init @singleton(RQTimingView); /// Timer @property (nonatomic, readonly, strong) NSTimer *timer; /// Label @property (nonatomic, readwrite, strong) UILabel *titleLabel; @property (strong, readwrite, nonatomic) NSString *classIdStr; /// 设置显示or隐藏 - (void)setHide:(BOOL)hide; - (BOOL)isHide; // 开始计时 - (void)beginTiming; // 暂停计时 - (void)pauseTiming; // 继续计时 - (void)continueTiming; // 结束计时 - (void)endTiming; - (void)stopTiming; - (void)stopTimingWithResultBlock:(void (^)(BOOL isSuccessed))resultBlock; @end NS_ASSUME_NONNULL_END