全部产品
云市场
云游戏

引导提示组件

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

AUPopTipView 为引导提示组件。

效果图

image

接口说明

  1. typedef NS_ENUM(NSInteger, AUPopViewIndicatorDirection) {
  2. AUPopViewIndicatorDirectionUp,
  3. AUPopViewIndicatorDirectionDown,
  4. };
  5. @interface AUPopTipView : AUPopDrawBoardView
  6. AU_UNAVAILABLE_INIT
  7. @property (nonatomic, assign) AUPopViewIndicatorDirection indicatorDirection;
  8. - (void)dismiss:(BOOL)animated;
  9. + (instancetype)showFromView:(UIView *)fromView
  10. fromPoint:(CGPoint)fromPoint
  11. toView:(UIView *)toView
  12. animated:(BOOL)animated
  13. withText:(NSString *)text
  14. buttonTitle:(NSString *)buttonTitle;
  15. @end

代码示例

  1. // 展示
  2. AUPopTipView *popTipView = [AUPopTipView showFromView:button
  3. fromPoint:CGPointZero
  4. toView:self.view
  5. animated:YES
  6. withText:@"你好福建省"
  7. buttonTitle:@"关闭"]; // 当 buttontitle 不传递时,右边按钮不显示
  8. // 隐藏
  9. [popTipView dismiss:YES];