AUImageInputBox is an input box with an icon on the left and is inherited from AUInputBox.
Sample image
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];