12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // GuideView.h
- // GuideView
- //
- // Created by Lofty on 16/9/29.
- // Copyright © 2016年 Lofty. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- extern NSString *const kShowDSNewsGuideViewKey;
- extern NSString *const kShowHaoHuoGuideViewKey;
- extern NSString *const kShowOfficalActivityGuideViewKey;
- typedef NS_ENUM(NSUInteger, NEW_FEATURE_TYPE_ENUM) {
- NEW_FEATURE_TYPE_ENUM_COMMON = 0,
- NEW_FEATURE_TYPE_ENUM_IMG,
- NEW_FEATURE_TYPE_ENUM_BTN,
- NEW_FEATURE_TYPE_ENUM_LBL
- };
- typedef void (^GuideViewCompleteBlock)();
- @interface GuideView : UIView
- @property (nonatomic, strong) UIColor *backColor;
- @property (nonatomic, copy) GuideViewCompleteBlock completeBlock;
- //加入单个控件的图片和位置
- - (void)addMaskViewWithType:(NEW_FEATURE_TYPE_ENUM)type image:(NSString *)imageName andRect:(CGRect)rect;
- //加入单张引导图
- - (void)addMaskView:(NSString *)imageName;
- //加入需要取消按钮的引导图
- - (void)addMaskView:(NSString *)imageName withImageRect:(CGRect)rect andBtnRect:(CGRect)btnRect;
- - (void)addMaskView:(UIView *)view withRect:(CGRect)rect;
- @end
|