Latest 1.0.0
Homepage https://github.com/tpctt/NewUserGuide
License MIT
Platforms ios 6.0, requires ARC
Frameworks CoreFoundation, Foundation, CoreGraphics, UIKit
Authors

初始化一个 聚光灯效果, 用于功能引导, 支持 path 和 view 的设置,包括一张图片

image
image

pod 'NewUserGuide'

##
///新手引导,聚光灯
-(void)showNewUserGuideIfNeed
{
///先注释,方便查看效果
    //    if([NewUserGuide hadShowNewUserGuideForKey:NSStringFromClass(self.class)] ||
    //       [NewUserGuide isShowingNewUserGuideForKey:NSStringFromClass(self.class)]
    //       ){
    //        return;
    //    }

UIView *onView ;
//    = self.tabBarController.navigationController.view;
onView = [UIApplication sharedApplication].keyWindow;

UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:[self.view convertRect:self.btn2.frame toView:onView] cornerRadius:5];
UIImage *image = [UIImage imageNamed:@"newUserGuide-1"];

CGPoint point = [self.view convertPoint:self.btn2.center toView:onView];
point.y += self.btn2.frame.size.height/2 + 10;
point.x -= image.size.width /2 ;

NewUserGuide *view = [[NewUserGuide alloc] init];

[view showOn:onView path:path appendPath:YES image:image imageAt:point withKey:NSStringFromClass(self.class) afterTap:^{

[view showOn:onView forView:_btn3 cornerRadius:10 image:nil imageAt:CGPointMake(100, 100) withKey:@"btn3" afterTap:^{

}];

}];

}

`

如果对您有帮助,还请star支持一下

如果对您有帮助,还请star支持一下

Latest podspec

{
    "name": "NewUserGuide",
    "version": "1.0.0",
    "summary": "u521du59cbu5316u4e00u4e2a u805au5149u706fu6548u679c, u7528u4e8eu529fu80fdu5f15u5bfc, u652fu6301 path u548c view u7684u8bbeu7f6e,u5305u62ecu4e00u5f20u56feu7247",
    "homepage": "https://github.com/tpctt/NewUserGuide",
    "social_media_url": "https://github.com/tpctt/NewUserGuide",
    "platforms": {
        "ios": "6.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        " tim": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tpctt/NewUserGuide.git",
        "tag": "1.0.0"
    },
    "source_files": "Classess/**/*.{h,m,mm}",
    "requires_arc": true,
    "frameworks": [
        "CoreFoundation",
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This