cdts/xdts-ios 3/TreeHole/Code/Utility/InputView/FSTextInputView.h
2023-07-27 09:20:00 +08:00

40 lines
872 B
Objective-C

//
// FSTextInputView.h
// FashionApp
//
// Created by 1 on 2018/5/25.
// Copyright © 2018年 1. All rights reserved.
//
#import <UIKit/UIKit.h>
@class FSTextInputView;
@protocol FSTextInputViewDelegate <NSObject>
- (void)didChangeText:(FSTextInputView *)textInputView;
@end
@interface FSTextInputView : UIView
@property (nonatomic, assign) UIEdgeInsets padding;
@property (nonatomic, readonly) NSString *content;
@property (nonatomic, assign) NSUInteger maxTextLength; // 最多字符 default: 14000
@property (nonatomic, assign) CGFloat minHeight;
@property (nonatomic, strong) UILabel *placeHolderLabel;
@property (nonatomic, strong) UITextView *textview;
@property (nonatomic, weak) id<FSTextInputViewDelegate> delegate;
@property (nonatomic, strong) void (^didChangeText)(FSTextInputView *inputView);
- (void)resignFirstResp;
- (void)clear;
@end