App第一次安装引导页面
Switch branches/tags
Clone or download
Latest commit 842da23 Jan 8, 2018
Permalink
Failed to load latest commit information.
Gif no message Jan 8, 2018
KSGuaidView no message Jan 8, 2018
KSGuaidViewDemo no message Jan 8, 2018
.gitignore Initial commit May 24, 2017
KSGuaidView.podspec Support UIInterfaceOrientationMask Jan 8, 2018
LICENSE Initial commit May 24, 2017
README.md Update README.md Jan 5, 2018
README_CN.md Update README_CN.md Jan 5, 2018

README.md

KSGuaidView(中文版)

License MIT Pod version Platform info


Summary

KSGuaidView is the tool to display new features when APP is first installed or updated.

图一 图二

Installation

pod 'KSGuaidView'      

Usage

Style 1:

    #import <KSGuaidViewManager.h>
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {                  
        KSGuaidManager.images = @[[UIImage imageNamed:@"guid01"],
                                    [UIImage imageNamed:@"guid02"],
                                    [UIImage imageNamed:@"guid03"],
                                    [UIImage imageNamed:@"guid04"]];
                                    
        CGSize size = [UIScreen mainScreen].bounds.size;
        KSGuaidManager.dismissButtonCenter = CGPointMake(size.width / 2, size.height - 80);
        
        KSGuaidManager.dismissButtonImage = [UIImage imageNamed:@"hidden"];
        
        [KSGuaidManager begin];
        
        return YES;
    }

Style 2:

    #import <KSGuaidViewManager.h>
 
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        KSGuaidManager.images = @[[UIImage imageNamed:@"guid01"],
                                    [UIImage imageNamed:@"guid02"],
                                    [UIImage imageNamed:@"guid03"],
                                    [UIImage imageNamed:@"guid04"]];
        
        KSGuaidManager.shouldDismissWhenDragging = YES;
        [KSGuaidManager begin];
        
        return YES;
    }   

Attention

  • You should set upKSGuaidManager.images .
  • Style 1 will ignore if you set up KSGuaidManager.shouldDismissWhenDragging = YES .
  • You should set upKSGuaidManager.dismissButtonImage if you didn`t set up KSGuaidManager.shouldDismissWhenDragging or KSGuaidManager.shouldDismissWhenDragging = NO .
  • Finally you need to call [KSGuaidManager begin].