All Products
Search
Document Center

Prompt component

Last Updated: May 21, 2021

AUPopTipView is a boot prompt component.

Sample image

image

API description

 
  1. typedef NS_ENUM(NSInteger, AUPopViewIndicatorDirection) {
  2. AUPopViewIndicatorDirectionUp,
  3. AUPopViewIndicatorDirectionDown,
  4. };
  5. @interface AUPopTipView : AUPopDrawBoardView
  6. AU_UNAVAILABLE_INIT
  7. @property (nonatomic, assign) AUPopViewIndicatorDirection indicatorDirection;
  8. - (void)dismiss:(BOOL)animated;
  9. + (instancetype)showFromView:(UIView *)fromView
  10. fromPoint:(CGPoint)fromPoint
  11. toView:(UIView *)toView
  12. animated:(BOOL)animated
  13. withText:(NSString *)text
  14. buttonTitle:(NSString *)buttonTitle;
  15. @end

Sample code

 
  1. // Display
  2. AUPopTipView *popTipView = [AUPopTipView showFromView:button
  3. fromPoint:CGPointZero
  4. toView:self.view
  5. animated:YES
  6. withText:@"Text sample"
  7. buttonTitle:@"Close"]; // When buttontitle is not transferred, the right button is not displayed.
  8. // Hide
  9. [popTipView dismiss:YES];