Celluloid 1.0.0

Celluloid 1.0.0

测试已测试
语言语言 SwiftSwift
许可 MIT
发布上次发布2016年10月
SPM支持SPM

Alex Littleohn维护。



Celluloid 1.0.0

  • Alex Littlejohn

Celluloid

这是一个视图,让您能够控制iOS摄像头的许多方面。


安装和需求

该项目需要Xcode 7来运行,并使用swift 2.2进行编译。

使用

import Celluloid

class ViewController: UIViewController {

    let cameraView = CelluloidView()

    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(cameraView)
    }

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)

        do {
            try cameraView.startCamera() { success in }
        } catch {

        }
    }

    override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        cameraView.frame = view.bounds
    }
}

许可

Celluloid在MIT许可下可用。请参阅LICENSE文件获取更多信息。