Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // DAKeyboardControl.h
- // DAKeyboardControlExample
- //
- // Created by Daniel Amitay on 7/14/12.
- // Copyright (c) 2012 Daniel Amitay. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef void (^DAKeyboardDidMoveBlock)(CGRect keyboardFrameInView);
- @interface UIView (DAKeyboardControl)
- @property (nonatomic) CGFloat keyboardTriggerOffset;
- @property (nonatomic, assign, getter = isKeyboardVisible) BOOL keyboardVisible;
- - (void)addKeyboardPanningWithActionHandler:(DAKeyboardDidMoveBlock)didMoveBlock;
- - (void)addKeyboardNonpanningWithActionHandler:(DAKeyboardDidMoveBlock)didMoveBlock;
- - (void)removeKeyboardControl;
- - (CGRect)keyboardFrameInView;
- - (void)hideKeyboard;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement