AUPopBar 为引导浮层栏组件。
效果图
接口说明
@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
代码示例
// 展示
AUPopBar *popBar = [AUPopBar showInViewBottom:weakSelf.view animated:YES withText:@"把“城市服务”添加到首页" icon:[UIImage imageNamed:@"ap_scan"] buttonTitle:@"立即添加" actionBlock:^{
NSLog(@"点击了");
return YES;
}];
// 隐藏
[popBar dismiss:YES];
文档内容是否对您有帮助?