All Products
Search
Document Center

Mobile Platform as a Service:Image input box

Last Updated:Jul 18, 2023

AUImageInputBox is an input box with an icon on the left and is inherited from AUInputBox.

Sample image

image.png

API description

/**
The input box with an icon on the left side.
*/
@interface AUImageInputBox : AUInputBox

/**
Left-side icon view (read-only).
*/
@property (nonatomic, strong, readonly) UIImageView *iconView;

/**
Set the left-side icon.

@param image The icon image.
*/
- (void)setIconImage:(UIImage *)image;

Code sample

AUImageInputBox *imageInputBox = [AUImageInputBox inputboxWithOriginY:startY inputboxType:AUInputBoxTypeNone];
imageInputBox.textField.placeholder = @"Enter as promoted";
[imageInputBox setIconImage:image];
[self.view addSubview:imageInputBox];