多个引导页

2020-05-27  本文已影响0人  adalillian

pod 'KSGuaidView' 


Style 1:

#import<KSGuaidViewManager.h>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions

 {                         

 KSGuaidManager.images= @[[UIImageimageNamed:@"guid01"],                        

 [UIImageimageNamed:@"guid02"],   

 [UIImageimageNamed:@"guid03"],       

[UIImageimageNamed:@"guid04"]];CGSizesize = [UIScreenmainScreen].bounds.size;     

KSGuaidManager.dismissButtonCenter=CGPointMake(size.width/2, size.height-80);                

KSGuaidManager.dismissButtonImage= [UIImageimageNamed:@"hidden"];               

[KSGuaidManagerbegin];returnYES;   

 }


Style 2:

#import<KSGuaidViewManager.h>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions 

{       

 KSGuaidManager.images= @[[UIImageimageNamed:@"guid01"], 

[UIImageimageNamed:@"guid02"],  

[UIImageimageNamed:@"guid03"],  

[UIImageimageNamed:@"guid04"]]; 

KSGuaidManager.shouldDismissWhenDragging=YES;        

[KSGuaidManagerbegin];returnYES;    

}

上一篇下一篇

猜你喜欢

热点阅读