From 83b9d5c682b21d88133f24da0f94dd56bd79e687 Mon Sep 17 00:00:00 2001 From: 单军华 Date: Thu, 19 Jul 2018 13:38:55 +0800 Subject: [PATCH] change --- screendisplay/Pods/YYText/YYText/Utility/YYTextTransaction.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/YYText/YYText/Utility/YYTextTransaction.h b/screendisplay/Pods/YYText/YYText/Utility/YYTextTransaction.h new file mode 100755 index 0000000..22124f7 --- /dev/null +++ b/screendisplay/Pods/YYText/YYText/Utility/YYTextTransaction.h @@ -0,0 +1,42 @@ +// +// YYTextTransaction.h +// YYText <https://github.com/ibireme/YYText> +// +// Created by ibireme on 15/4/18. +// Copyright (c) 2015 ibireme. +// +// This source code is licensed under the MIT-style license found in the +// LICENSE file in the root directory of this source tree. +// + +#import <Foundation/Foundation.h> + +NS_ASSUME_NONNULL_BEGIN + +/** + YYTextTransaction let you perform a selector once before current runloop sleep. + */ +@interface YYTextTransaction : NSObject + +/** + Creates and returns a transaction with a specified target and selector. + + @param target A specified target, the target is retained until runloop end. + @param selector A selector for target. + + @return A new transaction, or nil if an error occurs. + */ ++ (YYTextTransaction *)transactionWithTarget:(id)target selector:(SEL)selector; + +/** + Commit the trancaction to main runloop. + + @discussion It will perform the selector on the target once before main runloop's + current loop sleep. If the same transaction (same target and same selector) has + already commit to runloop in this loop, this method do nothing. + */ +- (void)commit; + +@end + +NS_ASSUME_NONNULL_END -- Gitblit v1.8.0