KSGuaidView


项目主页    by: iCloudys     Star:    Fork:     

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

相关文章