//
//  Responder+Keyboard.h
//  UIKitSupport
//
//  Created by RICHWARE SYSTEMS.
//  Copyright © 2016년 RICHWARE SYSTEMS. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^KeyboardDisplayBlock)(CGRect frame, CGFloat duration, BOOL display);

@interface UIResponder(Keyboard)

+ (void)cacheKeyboard;
+ (void)cacheKeyboard:(BOOL)onNextRunloop;

- (void)addObserverKeyboardFrameChanged:(id)delegate ;//Delegate사용
- (void)addObserverKeyboardDisplay:(KeyboardDisplayBlock)keyboardDisplayBlock ;//Block사용
- (void)removeObserverKeyboard ;

@end

@protocol KeyboardFrameChangedDelegate <NSObject>
@optional

- (void)keyboardFrameChanged:(CGRect)frame duration:(CGFloat)duration display:(BOOL)display ;

@end
