All Products
Search
Document Center

Mobile Platform as a Service:Floating layer bar component

Last Updated:Oct 30, 2023

AUPopBar is a guide floating layer bar component.

API description

@interface AUPopBar : AUView

AU_UNAVAILABLE_INIT

+ (instancetype)showInViewBottom:(UIView *)view
                        animated:(BOOL)animated
                        withText:(NSString *)text
                            icon:(UIImage *)icon
                     buttonTitle:(NSString *)buttonTitle
                     actionBlock:(BOOL(^)())actionBlock;

- (void)dismiss:(BOOL)animated;

@end

Sample code

// Display
AUPopBar *popBar = [AUPopBar showInViewBottom:weakSelf.view animated:YES withText:@"Add "City services" to the homepage" icon:[UIImage imageNamed:@"ap_scan"] buttonTitle:@"Add now" actionBlock:^{
                    NSLog(@"Clicked");
                    return YES;
                }];

// Hide
[popBar dismiss:YES];