VideoSplashKit:基于视频的 UIViewController 库

VideoSplashKit 是一个基于视频的 UIViewController 库,支持使用背景视频创建简介页面。它需要 iOS 8 或更高版本以及 Xcode 6.1+。 Swift 版本使用动态框架,因此仅在 iOS 8 以上版本受支持。

安装

您可以通过 CocoaPods 安装 VideoSplashKit。将以下行添加到您的 Podfile 中:

use_frameworks!
pod 'VideoSplashKit'

如果您使用的是 Swift 4,请使用以下代码:

pod 'VideoSplashKit', :git => 'https://github.com/svtek/VideoSplashKit.git', :branch => 'swift4'

然后,运行以下命令:

$ pod install

用法

import VideoSplashKit

class ViewController: VideoSplashViewController 
{
    // ...
}
zip
VideoSplashKit-master.zip 预估大小:23个文件
folder
VideoSplashKit-master 文件夹
file
.travis.yml 148B
folder
VideoSplashKitTests 文件夹
file
VideoSplashKitTests.swift 1KB
file
Info.plist 733B
folder
VideoSplashKit.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 193B
file
project.pbxproj 18KB
file
VideoSplashKit.podspec 975B
file
LICENSE 1KB
file
.gitignore 646B
file
CHANGELOG.md 539B
file
README.md 3KB
folder
VideoSplashKit 文件夹
file
ViewController.swift 2KB
folder
Resources 文件夹
file
Museo500-Regular.otf 125KB
file
test.mp4 4.32MB
file
Default-568h@2x.png 18KB
file
btnRegister.png 3KB
file
btnSignin.png 3KB
file
AppDelegate.swift 922B
folder
Source 文件夹
file
VideoCutter.swift 2KB
file
VideoSplashViewController.swift 4KB
folder
Images.xcassets 文件夹
folder
AppIcon.appiconset 文件夹
file
Contents.json 2KB
file
Contents.json 62B
folder
Brand Assets.launchimage 文件夹
file
Contents.json 873B
file
Info.plist 2KB
zip 文件大小:4.4MB