KSGuaidView(中文版)
KSGuaidView is the tool to display new features when APP is first installed or updated.
pod 'KSGuaidView'
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;
}
- You should set up
KSGuaidManager.images
. - Style 1 will ignore if you set up
KSGuaidManager.shouldDismissWhenDragging = YES
. - You should set up
KSGuaidManager.dismissButtonImage
if you didn`t set upKSGuaidManager.shouldDismissWhenDragging
orKSGuaidManager.shouldDismissWhenDragging = NO
. - Finally you need to call
[KSGuaidManager begin]
.