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];
在文档使用中是否遇到以下问题
更多建议
匿名提交