GithubHelp home page GithubHelp logo

aeguideview's Introduction

AEGuideView

An easy way to let your app show guide view during startup. This framework is inspired from HcdGuideView

This framework overcomes the problem that sometimes HcdGuideView doesn't show at all when app starts up. And this framework has be rewritten to have it comform to auto layout design.


AEGuideView


## Installation

From CocoaPods

  • Add pod 'AEGuideView', '~> 1.0.1' to your Podfile.
  • Install by running pod install
  • Include AEGuideView by adding #import <AEGuideView/AEGuideView.h>

Usage

(see sample Xcode project in /AEGuideViewDemo)

AEGuideView is created as a singleton (i.e. it doesn't need to be explicitly allocated and instantiated; you get its instace by calling [AEGuideView instance]).

Showing the AEGuideView

You can show the AEGuideView:

   NSMutableArray *images = [NSMutableArray new];
    
    [images addObject:[UIImage imageNamed:@"1"]];
    [images addObject:[UIImage imageNamed:@"2"]];
    [images addObject:[UIImage imageNamed:@"3"]];
  
    
    AEGuideView *guideView = [AEGuideView instance];
    
    __weak AppDelegate* weakDelegate = self;
    [guideView showGuideViewWithImages:images
                        andButtonTitle:@"立即体验"
                   andButtonTitleColor:[UIColor whiteColor]
                      andButtonBGColor:[UIColor clearColor]
                  andButtonBorderColor:[UIColor whiteColor]
                   withCompletionBlock:^(void){
                       
                       [weakDelegate.window makeKeyWindow];
                   }];

Customization - tweak the bottom spaces for last step button and page control

    //Define bottom spaces prior to showing the AEGuideView
    [AEGuideView appearance].pageControlBottomSpace = @(0);
    [AEGuideView appearance].lastButtonBottmSpace = @(40);
  }];

Default bottom spaces

#define kAEGuideView_DefaultPageControlBottomSpace  20
#define KAEGuideView_DefaultLastButtonBottomSpace   60

Credits

AEGuideView is brought to you by William Wangi. If you have feature suggestions or bug reports, feel free to help out by sending pull requests or by creating new issues. If you're using AEGuideView in your project, attribution would be nice.

aeguideview's People

Contributors

canicelebrate avatar

Watchers

 avatar  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.