mirror of
https://github.com/HackPlan/IQKeyboardManager.git
synced 2026-06-16 18:20:03 +08:00
- Enhanced demo project and added various examples demonstrating almost all properties of library. - Enhanced library Settings Controller. - Moved some contents of README.md file to other files.
43 lines
1.1 KiB
Objective-C
Executable File
43 lines
1.1 KiB
Objective-C
Executable File
//
|
|
// 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
|