All Products
Search
Document Center

Floating layer bar component

Last Updated: May 21, 2021

AUPopBar is a guide floating layer bar component.

Sample image

image

API description

 
  1. @interface AUPopBar : AUView
  2. AU_UNAVAILABLE_INIT
  3. + (instancetype)showInViewBottom:(UIView *)view
  4. animated:(BOOL)animated
  5. withText:(NSString *)text
  6. icon:(UIImage *)icon
  7. buttonTitle:(NSString *)buttonTitle
  8. actionBlock:(BOOL(^)())actionBlock;
  9. - (void)dismiss:(BOOL)animated;
  10. @end

Sample code

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