AUPopTipView 为引导提示组件。
效果图

接口说明
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
代码示例
// 展示
AUPopTipView *popTipView = [AUPopTipView showFromView:button
fromPoint:CGPointZero
toView:self.view
animated:YES
withText:@"你好福建省"
buttonTitle:@"关闭"]; // 当 buttontitle 不传递时,右边按钮不显示
// 隐藏
[popTipView dismiss:YES];
该文章对您有帮助吗?
- 本页导读 (0)
- 效果图
- 接口说明
- 代码示例