MovieLaunchGuide - 一个视频动画启动引导页 Swift 项目

4,742 阅读1分钟
原文链接: github.com

MovieLaunchGuide是一个视频动画启动引导页Swift项目

效果如下:

image

使用方式:

// 配置本地视频的封面图片和视频路径
var images = [UIImage]()
var paths = [String]()
for i in 0..<4 {="" images.append(uiimage(named:="" "guide\(i)")!)="" paths.append(nsbundle.mainbundle().pathforresource("guide\(i)",="" oftype:="" "mp4")!)="" }="" window="UIWindow(frame:" uiscreen.mainscreen().bounds)="" window?.backgroundcolor="UIColor.whiteColor()" window?.rootviewcontroller="MovieLaunchGuide(guideImages:" images,="" guidemoviepaths:="" paths,="" playfinished:="" [unowned="" self]="" in="" self.window?.rootviewcontroller="UINavigationController(rootViewController:" main())="" })="" window?.makekeyandvisible()="" <="" code="">