Latest 0.0.7
Homepage https://github.com/lztbwlkj/MSLaunchView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, AVFoundation, AVKit
Authors

一键合成APP引导页,包含不同状态下的引导页操作方式,同时支持动态图片引导页和静态图片引导页,支持按钮跳过按钮,立即体验按钮完全自定义,省掉冗余的代码,集成性高,使用方便;


声明:部分图片来源于网络,如有涉及版权会马上删除,敬请谅解;

效果图展示:

APP静态图片引导页(上) | APP动态图片引导页(下)

手动进入体验 自动进入体验
MSLaunchView MSLaunchView
手动进入体验 自动进入体验
MSLaunchView MSLaunchView

更新记录:

2019.01.05 — v0.0.7:提交0.0.7版本,添加PageControl更多的自定义属性;

使用方式(支持代码创建和StoryBoard创建项目):

图片数组(gif自动识别):
使用代码创建的项目,无进入立即按钮:
MSLaunchView *launchView = [MSLaunchView launchWithImages:@[@"launch1",@"launch2",@"launch3"]];
使用StoryBoard创建的项目,无进入立即按钮:
[MSLaunchView launchWithImages:@[@"launch1",@"launch2",@"launch3"] sbName:@"Main"];
使用代码创建的项目,有进入立即按钮:
[MSLaunchView launchWithImages:imageNameArray guideFrame:CGRectMake(MSScreenW*0.3, MSScreenH*0.8, MSScreenW*0.4, MSScreenH*0.08) gImage:[UIImage imageNamed:@""]];
使用StoryBoard创建的项目,有进入立即按钮:
[MSLaunchView launchWithImages:imageNameArray sbName:@"Main" guideFrame:CGRectMake(MSScreenW*0.3, MSScreenH*0.8, MSScreenW*0.4, MSScreenH*0.08) gImage:[UIImage imageNamed:@""]];
小视频(目前仅支持单个视频文件):
NSString *path  = [[NSBundle mainBundle]  pathForResource:@"测试" ofType:@"mp4"];
NSURL *url = [NSURL fileURLWithPath:path];
[MSLaunchView launchWithVideo:CGRectMake(0, 0, MSScreenW, MSScreenH) videoURL:url];

==!!!如果你使用带立即进入按钮的初始化方法,那么后面的guideBtnCustom:方法将会失效!!!==

视频的用法和图片的用法基本一致 这里就不再赘述,具体请参考Demo

集成方式:

1.下载项目或者下载项目中MSLaunchView文件夹,将下载好的文件拖拽到自己的工程文件夹中,并在AppDelegate.h中导入#import "MSLaunchView.h"头文件;

2. cocoapods集成:

在项目的podfile文件中加入下面代码
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];
}

<<分享是一种美德,你的Star是我更新的动力,使用过程如果有什么问题可以issues,我会及时回复大家!>>

Latest podspec

{
    "name": "MSLaunchView",
    "version": "0.0.7",
    "summary": "u4e00u884cu4ee3u7801u53efu96c6u6210u6027u80fdu5f3au5927u7684APPu542fu52a8u5f15u5bfcu9875uff0cu4e0du4ec5u652fu6301u666eu901au683cu5f0fu7684u56feu7247,u8fd8u652fu6301GIF,u77edu89c6u9891,u4e0du4f1au8ba9u4f60u5931u671bu7684uff01",
    "description": "u4e00u884cu4ee3u7801u5408u6210APPu5f15u5bfcu9875uff0cu5305u542bu4e0du540cu72b6u6001u4e0bu7684u5f15u5bfcu9875u64cdu4f5cu65b9u5f0f,u540cu65f6u652fu6301u52a8u6001u56feu7247u5f15u5bfcu9875u548cu9759u6001u56feu7247u5f15u5bfcu9875,u652fu6301u5355u4e2au89c6u9891u64adu653e,u540cu4e8bu652fu6301u8df3u8fc7u6309u94ae,u7acbu5373u4f53u9a8cu6309u94aeu5b8cu5168u81eau5b9au4e49,u6b22u8fceu5927u5bb6u6765u4f7fu7528uff01",
    "homepage": "https://github.com/lztbwlkj/MSLaunchView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lztbwlkj": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/lztbwlkj/MSLaunchView.git",
        "tag": "0.0.7"
    },
    "source_files": "Demo/MSLaunchView/MSLaunchView/**/*",
    "frameworks": [
        "UIKit",
        "AVFoundation",
        "AVKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This