All Products
Document Center

Mobile Platform as a Service:Paragraph input box

Last Updated:Jul 18, 2023

AUParagraphInputBox is a multi-line input box control. The maximum number of characters allowed in specific business can be specified for it.

API description

// The multi-line text input box.

@interface AUParagraphInputBox : UIView

@property (nonatomic, strong) UITextView *textView;      // Imput box
@property (nonatomic, assign) NSInteger maxInputLen;     // Set the character limit (as required)

// Initialization.
- (instancetype)initWithFrame:(CGRect)frame placeHolder:(NSString *)placeHolder;

// Set the placeHolder text.
- (void)setPlaceHolder:(NSString *)placeHolder;


Code sample

_paragraphInputBox = [[AUParagraphInputBox alloc] init];
_paragraphInputBox.frame = CGRectMake(0, startY, AUCommonUIGetScreenWidth(), 10);
_paragraphInputBox.maxInputLen = 1240;
_paragraphInputBox.textView.delegate = self;
[_paragraphInputBox setPlaceHolder:@"Please enter text here"];
[self.view addSubview:_paragraphInputBox];