Latest 0.0.1
Homepage https://github.com/JC-Hu/JHGuideController
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

易用的半透明浮层操作引导,只需给出需要高亮的view或rect区域,支持多个高亮区域。

Translucent guide window control.Just needs views or rects to highlight.

效果图

image

使用方法

// show
JHGuideController *guideController = [JHGuideController new];
guideController.snapshotViewUpdates = YES;
[guideController showWithViewsToSnapshot:@[view1, view2, view3]];

// callback
[guideController setTapBlock:^(UIView *snapshotView, CGRect rect) {
    // do something
}];

详见Demo工程

// 通过复制view实现效果
- (void)showWithViewToSnapshot:(UIView *)view;
- (void)showWithViewsToSnapshot:(NSArray<__kindof UIView *> *)array;

// 通过镂空半透明浮层实现效果
- (void)showWithRectToHollow:(CGRect)rect;
- (void)showWithRectsToHollow:(NSArray <__kindof NSValue *>*)array;

Latest podspec

{
    "name": "JHGuideController",
    "version": "0.0.1",
    "summary": "Translucent guide window control for iOS.",
    "homepage": "https://github.com/JC-Hu/JHGuideController",
    "license": "MIT",
    "authors": {
        "JC-Hu": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/JC-Hu/JHGuideController.git",
        "tag": "0.0.1"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true,
    "source_files": "src/**/*.{h,m,c,mm}"
}

Pin It on Pinterest

Share This