31 lines
585 B
Objective-C
31 lines
585 B
Objective-C
//
|
|
// TFTextView.h
|
|
// TFReader
|
|
//
|
|
// Created by 谢腾飞 on 2020/12/23.
|
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol TFTextViewDelegate <NSObject>
|
|
@optional
|
|
|
|
- (void)textViewDidChange:(NSString *)text;
|
|
|
|
@end
|
|
|
|
@interface TFTextView : UIView
|
|
|
|
@property (nonatomic ,assign) NSUInteger maxWordCount;
|
|
@property (nonatomic ,copy ,readonly) NSString *text;
|
|
@property (nonatomic ,weak) id<TFTextViewDelegate> delegate;
|
|
|
|
- (void)resetPlaceholderText:(NSString *)placeholderText;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|