项目
在 GitHub 查看
sahin/VideoSplashKit
关于
VideoSplashKit:用于轻松创建带背景视频的介绍页面的 UIViewController 库。
创作与媒体实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文VideoSplashKit - Video based UIViewController

Introduction
Requires iOS 8 or later and Xcode 6.1+
Swift support uses dynamic frameworks and is therefore only supported on iOS > 8.
Installation
To install via CocoaPods add this line to your Podfile.
use_frameworks!
and
pod 'VideoSplashKit'
or if you are using Swift4
pod 'VideoSplashKit', :git => 'https://github.com/svtek/VideoSplashKit/VideoSplashKit.git', :branch => 'swift4'
Then, run the following command:
$ pod install
Usage
import VideoSplashKit
class ViewController: VideoSplashViewController {
override func viewDidLoad() {
super.viewDidLoad()
let url = NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("test", ofType: "mp4")!)
self.videoFrame = view.frame
self.fillMode = .ResizeAspectFill
self.alwaysRepeat = true
self.sound = true
self.startTime = 12.0
self.duration = 4.0
self.alpha = 0.7
self.backgroundColor = UIColor.blackColor()
self.contentURL = url
self.restartForeground = true
}
}
Authors
| Omer Karisman Lead UI/UX @ MojiLaLa ![]() |
![]() |
Sahin Boydas Co-Founder @ MojiLaLa |
|---|
探索相关项目
加载中…



