From 21d3023a9b7b6aff68c1170e345951396b1c6cfd Mon Sep 17 00:00:00 2001 From: 单军华 Date: Tue, 31 Jul 2018 13:35:21 +0800 Subject: [PATCH] no message --- screendisplay/screendisplay/Classes/Category/ThirdCategory/UITextView+WZB.h | 65 ++++++++++++++++++++++++++++++++ 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/screendisplay/screendisplay/Classes/Category/ThirdCategory/UITextView+WZB.h b/screendisplay/screendisplay/Classes/Category/ThirdCategory/UITextView+WZB.h new file mode 100755 index 0000000..a305f0c --- /dev/null +++ b/screendisplay/screendisplay/Classes/Category/ThirdCategory/UITextView+WZB.h @@ -0,0 +1,65 @@ +// +// UITextView+WZB.h +// WZBTextView-demo +// +// Created by normal on 2016/11/14. +// Copyright �� 2016��� WZB. All rights reserved. +// + +#import <UIKit/UIKit.h> + +typedef void(^textViewHeightDidChangedBlock)(CGFloat currentTextViewHeight); + +@interface UITextView (WZB) + +/* ������������ */ +@property (nonatomic, copy) NSString *wzb_placeholder; + + +/* ������������������ */ +@property (nonatomic, strong) UIColor *wzb_placeholderColor; + + +/* ��������������������������������������������������������������� */ +@property (nonatomic, assign) CGFloat wzb_maxHeight; + + +/* ��������������������������������������������������������������� */ +@property (nonatomic, assign) CGFloat wzb_minHeight; + + +@property (nonatomic, copy) textViewHeightDidChangedBlock wzb_textViewHeightDidChanged; + + +/* ������������������ */ +- (NSArray *)wzb_getImages; + + +/* ������������������������maxHeight��������������� */ +- (void)wzb_autoHeightWithMaxHeight:(CGFloat)maxHeight; + + +/* ������������������������maxHeight������������������ textHeightDidChanged������������������������������ */ +- (void)wzb_autoHeightWithMaxHeight:(CGFloat)maxHeight textViewHeightDidChanged:(textViewHeightDidChangedBlock)textViewHeightDidChanged; + +/* ������������������ image:������������������ */ +- (void)wzb_addImage:(UIImage *)image; + + +/* ������������������ image:������������������ size:������������ */ +- (void)wzb_addImage:(UIImage *)image size:(CGSize)size; + + +/* ������������������ image:������������������ size:������������ index:��������������� */ +- (void)wzb_insertImage:(UIImage *)image size:(CGSize)size index:(NSInteger)index; + + +/* ������������������ image:������������������ multiple:������������������������ */ +- (void)wzb_addImage:(UIImage *)image multiple:(CGFloat)multiple; + + +/* ������������������ image:������������������ multiple:������������������������ index:��������������� */ +- (void)wzb_insertImage:(UIImage *)image multiple:(CGFloat)multiple index:(NSInteger)index; + + +@end -- Gitblit v1.8.0