No Description

GuideView.h 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // GuideView.h
  3. // GuideView
  4. //
  5. // Created by Lofty on 16/9/29.
  6. // Copyright © 2016年 Lofty. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. extern NSString *const kShowDSNewsGuideViewKey;
  10. extern NSString *const kShowHaoHuoGuideViewKey;
  11. extern NSString *const kShowOfficalActivityGuideViewKey;
  12. typedef NS_ENUM(NSUInteger, NEW_FEATURE_TYPE_ENUM) {
  13. NEW_FEATURE_TYPE_ENUM_COMMON = 0,
  14. NEW_FEATURE_TYPE_ENUM_IMG,
  15. NEW_FEATURE_TYPE_ENUM_BTN,
  16. NEW_FEATURE_TYPE_ENUM_LBL
  17. };
  18. typedef void (^GuideViewCompleteBlock)();
  19. @interface GuideView : UIView
  20. @property (nonatomic, strong) UIColor *backColor;
  21. @property (nonatomic, copy) GuideViewCompleteBlock completeBlock;
  22. //加入单个控件的图片和位置
  23. - (void)addMaskViewWithType:(NEW_FEATURE_TYPE_ENUM)type image:(NSString *)imageName andRect:(CGRect)rect;
  24. //加入单张引导图
  25. - (void)addMaskView:(NSString *)imageName;
  26. //加入需要取消按钮的引导图
  27. - (void)addMaskView:(NSString *)imageName withImageRect:(CGRect)rect andBtnRect:(CGRect)btnRect;
  28. - (void)addMaskView:(UIView *)view withRect:(CGRect)rect;
  29. @end