一键合成APP引导页,包含不同状态下的引导页操作方式,同时支持动态图片引导页和静态图片引导页,支持按钮跳过按钮,立即体验按钮完全自定义,PageControl样式多样(支持方形点,圆形点,横线+小圆点样式等),省掉冗余的代码,集成性高,使用方便;
| 手动进入体验 | 自动进入体验 |
|---|---|
| 手动进入体验 | 自动进入体验 |
MSLaunchView *launchView = [MSLaunchView launchWithImages:imageNameArray isScrollOut:YES];
MSLaunchView *launchView = [MSLaunchView launchWithImages:imageNameArray sbName:@"" isScrollOut:NO];
MSLaunchView *launchView = [MSLaunchView launchWithImages:imageNameArray guideFrame:rt gImage:[UIImage imageNamed:@""] isScrollOut:NO];
MSLaunchView *launchView = [MSLaunchView launchWithImages:imageNameArray sbName:@"" guideFrame:rt gImage:[UIImage imageNamed:@""] isScrollOut:YES];
NSString *path = [[NSBundle mainBundle] pathForResource:@"测试" ofType:@"mp4"]; NSURL *url = [NSURL fileURLWithPath:path]; [MSLaunchView launchWithVideo:CGRectMake(0, 0, MSScreenW, MSScreenH) videoURL:url];
==!!!如果你使用带立即进入按钮的初始化方法,那么后面的guideBtnCustom:方法将会失效!!!==
pod 'MSLaunchView', '~>0.0.5'
launchView.guideTitle = @""; launchView.guideTitleColor = [UIColor redColor]; //是否隐藏跳过按钮 launchView.isHiddenSkipBtn = YES; //PageControl属性 launchView.nomalColor = [UIColor lightGrayColor]; launchView.currentColor = [UIColor orangeColor]; //视频拉伸方式 launchView.videoGravity = AVLayerVideoGravityResize; //播放完成是否自动推出 默认:YES launchView.isPalyEndOut = NO;
[launchView guideBtnCustom:^UIButton * _Nonnull{ UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRectMake(60, 60, 120, 120); [btn setBackgroundColor:[UIColor redColor]]; [btn addTarget:self action:@selector(hidde) forControlEvents:UIControlEventTouchUpInside]; return btn; }]; -(void)hidde{ [_launchView hideGuidView];
[launchView skipBtnCustom:^UIButton * _Nonnull{ UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRectMake(60, 200, 120, 120); [btn setBackgroundColor:[UIColor blueColor]]; [btn addTarget:self action:@selector(hidde) forControlEvents:UIControlEventTouchUpInside]; return btn; }]; -(void)hidde{ [_launchView hideGuidView]; }