XKeyBoard.h 915 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. @class XKeyBoard;
  4. @protocol KeyBoardDlegate <NSObject>
  5. - (void)keyboardWillShowNotification:(NSNotification *)notification;
  6. - (void)keyboardWillHideNotification:(NSNotification *)notification;
  7. @end
  8. @interface XKeyBoard : NSObject
  9. /**
  10. * 注册键盘出现
  11. *
  12. * @param target 目标(self)
  13. */
  14. + (void)registerKeyBoardShow:(id)target;
  15. /**
  16. * 注册键盘隐藏
  17. *
  18. * @param target 目标(self)
  19. */
  20. + (void)registerKeyBoardHide:(id)target;
  21. /**
  22. *
  23. *
  24. * @return 返回键盘,包括高度、宽度
  25. */
  26. + (CGRect)returnKeyBoardWindow:(NSNotification *)notification;
  27. /**
  28. *
  29. *
  30. * @return 返回键盘上拉动画持续时间
  31. */
  32. + (double)returnKeyBoardDuration:(NSNotification *)notification;
  33. /**
  34. *
  35. *
  36. * @return 返回键盘上拉,下拉动画曲线
  37. */
  38. + (UIViewAnimationCurve)returnKeyBoardAnimationCurve:(NSNotification *)notification;
  39. @end