You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
477 B
23 lines
477 B
// |
|
// NSTimer+XRTimer.h |
|
// tongxin |
|
// |
|
// Created by Apple on 2020/4/11. |
|
// Copyright © 2020 xTT. All rights reserved. |
|
// |
|
|
|
|
|
|
|
#import <Foundation/Foundation.h> |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
@interface NSTimer (XRTimer) |
|
/// 定时器回调 |
|
/// @param interval 执行的间隔 |
|
/// @param repeats 是否重复 |
|
/// @param block 回调 |
|
+ (NSTimer *)xr_timerWithTimeInterval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *))block; |
|
@end |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|