Code Monkey home page Code Monkey logo

guideviewcontroller's Introduction

GuideViewController

引导页功能,测试环境 ,XCode7.2 IOS9

用法:

BOOL canShow = [GuideViewController canShowNewFeature];
//测试用
canShow = YES;
if (canShow) {
    
    GuideViewController *guideVC = [GuideViewController newGuideViewWithImageNames:@[@"cloud_img0",@"cloud_img1",@"cloud_img2"]
                                                                          andTitle:@[@"欢迎页1",@"欢迎页2",@"欢迎页3"]
                                                                       andDesTitle:@[@"你好,欢迎页1",@"你好,欢迎页2",@"你好,欢迎页3"]
                                                                       andBgImages:@[@"bg_image",@"bg_image",@"bg_image"]
                                                                 andConfigBtnBlock:^(UIButton *button)
    {
        [button setTitle:@"进入App" forState:UIControlStateNormal];
        [button setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
        button.backgroundColor = [UIColor colorWithRed:117 green:189 blue:188 alpha:1];
    } andCompeleteBlock:^
    {
        NSLog(@"进入首页");
    }];
    
    
    [self presentViewController:guideVC
                       animated:YES
                     completion:^
     {
         NSLog(@"完成");
     }];
    
}
else{
    NSLog(@"非首次进入");
}

guideviewcontroller's People

Contributors

fanwenkai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.