LZBTextView.h 865 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // LZBTextView.h
  3. // LZBKeyBoardView
  4. //
  5. // demo地址:https://github.com/lzbgithubcode/LZBKeyBoardView.git
  6. // Created by zibin on 16/11/29.
  7. // Copyright © 2016年 apple. All rights reserved.
  8. //
  9. #pragma mark - 自定义带有占位文字的UITextView
  10. #import <UIKit/UIKit.h>
  11. @interface LZBTextView : UITextView
  12. /**
  13. * 设置占位文字
  14. */
  15. @property (nonatomic, copy) NSString *placeholder;
  16. /**
  17. * 设置占位文字颜色
  18. */
  19. @property (nonatomic, strong) UIColor *placeholderColor;
  20. /**
  21. * 占位文字的X偏移量
  22. */
  23. @property (nonatomic, assign) CGFloat placeHolderOffsetX;
  24. /**
  25. * 占位文字的Y偏移量
  26. */
  27. @property (nonatomic, assign) CGFloat placeHolderOffsetY;
  28. /**
  29. * 光标的偏移量
  30. */
  31. @property (nonatomic, assign) UIOffset cursorOffset;
  32. /**
  33. * 是否隐藏
  34. */
  35. @property (nonatomic, assign) BOOL placeHolderHidden;
  36. @end