全部产品
云市场

引导浮层栏组件

更新时间:2020-04-28 16:56:04

AUPopBar 为引导浮层栏组件。

效果图

image

接口说明

  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

代码示例

  1. // 展示
  2. AUPopBar *popBar = [AUPopBar showInViewBottom:weakSelf.view animated:YES withText:@"把“城市服务”添加到首页" icon:[UIImage imageNamed:@"ap_scan"] buttonTitle:@"立即添加" actionBlock:^{
  3. NSLog(@"点击了");
  4. return YES;
  5. }];
  6. // 隐藏
  7. [popBar dismiss:YES];