All Products
Search
Document Center

Mobile Platform as a Service:Prompt component

Last Updated:Oct 30, 2023

AUPopTipView is a boot prompt component.

API description

typedef NS_ENUM(NSInteger, AUPopViewIndicatorDirection) {
    AUPopViewIndicatorDirectionUp,
    AUPopViewIndicatorDirectionDown,
};

@interface AUPopTipView : AUPopDrawBoardView

AU_UNAVAILABLE_INIT

@property (nonatomic, assign) AUPopViewIndicatorDirection indicatorDirection;

- (void)dismiss:(BOOL)animated;

+ (instancetype)showFromView:(UIView *)fromView
                   fromPoint:(CGPoint)fromPoint
                      toView:(UIView *)toView
                    animated:(BOOL)animated
                    withText:(NSString *)text
                 buttonTitle:(NSString *)buttonTitle;

@end

Sample code

// Display
AUPopTipView *popTipView = [AUPopTipView showFromView:button
                                            fromPoint:CGPointZero
                                               toView:self.view
                                             animated:YES
                                             withText:@"Text sample"
                                          buttonTitle:@"Close"]; // When buttontitle is not transferred, the right button is not displayed.

// Hide
[popTipView dismiss:YES];