All Products
Search
Document Center

Image input box

Last Updated: May 13, 2021

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

Sample image

API description

 
  1. /**
  2. The input box with an icon on the left side.
  3. */
  4. @interface AUImageInputBox : AUInputBox
  5. /**
  6. Left-side icon view (read-only).
  7. */
  8. @property (nonatomic, strong, readonly) UIImageView *iconView;
  9. /**
  10. Set the left-side icon.
  11. @param image The icon image.
  12. */
  13. - (void)setIconImage:(UIImage *)image;

Code sample

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