阿里云首页 移动开发平台 mPaaS 相关技术圈

引导提示组件

AUPopTipView 为引导提示组件。

效果图

image

接口说明

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];