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.

59 lines
962 B

2 years ago
//
// YCThreadSimple.h
// UIP
//
// Created by th on 2018/3/1.
// Copyright © 2018年 thgyuip. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum YCThreadSelect
{
YCThreadChild,
YCThreadMain
}YCThreadSelect;
@interface YCThreadSimple : NSObject
typedef void(^ycDelayBlock)(void);
/**
线
@param operate
*/
+ (void)threadAtChild:(void(^)(void))operate;
/**
线
@param operate
*/
+ (void)threadAtMain:(void(^)(void))operate;
/**
线
@param thread 线
@param time
@param operate
*/
+ (void)threadAt:(YCThreadSelect)thread DelayTime:(CGFloat)time operate:(void(^)(void))operate;
/**
线block线
@param second
@param block
*/
+ (void)threadCountDownTime:(NSInteger)second block:(void(^)(NSInteger second))block;
@end