You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
908 B

//
// CXCustomTextView.h
// CXTextView_Example
//
// Created by caixiang on 2019/5/6.
// Copyright © 2019年 616704162@qq.com. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface CXCustomTextView : UITextView
/**
*/
@property (nonatomic, copy) NSString *placeholder;
/**
*/
@property (nonatomic, strong) UIColor *placeholderColor;
/**
*/
@property(nonatomic,assign)CGPoint placePoint;
/**
*/
@property (nonatomic, assign)NSInteger maxLength;
/**
KVO监听
*/
@property(nonatomic,copy)void (^textDidChangeHandlerBlock)(CXCustomTextView *textView);
/**
*/
@property(nonatomic,copy)void (^textLengthDidMaxHandlerBlock)(CXCustomTextView *textView);
@end
NS_ASSUME_NONNULL_END