Latest 0.1
Homepage https://github.com/SosonHuang/SOGuidePage
License MIT
Platforms ios 9.0
Dependencies YLGIFImage
Authors

版本第一次安装引导图,支持gif,普通图片!

使用方式

pod ‘SOGuidePage’

新建一个引导ViewController,把代码加入即可

 /**  支持Gif和普通图片混合 **/
SOGuidePageView *guidePage = [[SOGuidePageView alloc] initWithImgsArray:@[@"1.gif", [UIImage imageNamed:@"img2"], @"img3", [UIImage imageNamed:@"img4"]] guidePageCurrentIdx:nil];
//设置滚动到最后一张图片,继续滚动可以跳转到主页,实现代理方法lastImageGoToMainVC
guidePage.isScrollLastImageToMainVC = YES;
//设置背景颜色
guidePage.guidePageBGColor = [UIColor blackColor];
//设置pageControl的Y位置
guidePage.pageY = 22;
//设置page未选中图片
guidePage.pageNormalImage = [UIImage imageNamed:@"dot_normal"];
//设置page选中时的图片
guidePage.pageCurrentImage = [UIImage imageNamed:@"dot_select"];
guidePage.delegate = self;

//加入开启按钮
UIButton *test = [[UIButton alloc] initWithFrame:CGRectMake(100, 500, 150, 50)];
test.backgroundColor = [UIColor yellowColor];
[test addTarget:self action:@selector(enterClick) forControlEvents:UIControlEventTouchUpInside];
[guidePage.imgs.lastObject addSubview:test];
[self.view addSubview:guidePage];

Latest podspec

{
    "name": "SOGuidePage",
    "version": "0.1",
    "summary": "u9996u6b21u5b89u88c5u5f15u5bfcu754cu9762uff0cu652fu6301Gifuff0cu666eu901au56feu7247uff0cGifu548cu666eu901au56feu7247u6df7u5408u4e09u79cdu60c5u51b5uff01",
    "description": "u9996u6b21u5b89u88c5u5f15u5bfcu754cu9762uff0cu652fu6301Gifuff0cu666eu901au56feu7247uff0cGifu548cu666eu901au56feu7247u6df7u5408u4e09u79cdu60c5u51b5uff01nu53eau9700u8981u7b80u5355u7684u51e0u884cu4ee3u7801u5373u53efu96c6u6210u5f15u5bfcu754cu9762uff01",
    "homepage": "https://github.com/SosonHuang/SOGuidePage",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "SosonWong": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/SosonHuang/SOGuidePage.git",
        "tag": "0.1"
    },
    "source_files": "SOGuidePage/SOGuidePage/SOGuideView/**/*.{h,m}",
    "dependencies": {
        "YLGIFImage": []
    }
}

Pin It on Pinterest

Share This