PlaceHolderTextView.h 773 B

1234567891011121314151617181920212223242526
  1. //
  2. // PlaceHolderTextView.h
  3. // 乐销
  4. //
  5. // Created by 隋林栋 on 2016/12/24.
  6. // Copyright © 2016年 ping. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface PlaceHolderTextView : UITextView
  10. @property (nonatomic, strong) UILabel *placeHolder;
  11. @property (nonatomic, strong) void (^blockTextChange)(PlaceHolderTextView *);//text change
  12. @property (nonatomic, strong) void (^blockHeightChange)(PlaceHolderTextView *);//text change
  13. @property (nonatomic, assign) CGFloat numTextHeight;//textHeight
  14. @property (nonatomic, assign) CGFloat lineSpace;//lineSpace
  15. @property (nonatomic, strong) NSDictionary *attributes;
  16. /**
  17. change number of lines
  18. @param isCall call block change lines
  19. */
  20. - (void)changeLinesCallBlock:(BOOL)isCall;
  21. @end