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
{
// ...
}
VideoSplashKit-master.zip
预估大小:23个文件
VideoSplashKit-master
文件夹
.travis.yml
148B
VideoSplashKitTests
文件夹
VideoSplashKitTests.swift
1KB
Info.plist
733B
VideoSplashKit.xcodeproj
文件夹
project.xcworkspace
文件夹
contents.xcworkspacedata
193B
project.pbxproj
18KB
VideoSplashKit.podspec
975B
4.4MB
文件大小:
评论区