【发布时间】:2016-06-24 07:10:25
【问题描述】:
我在我的应用中使用相机管理器框架:https://github.com/imaginary-cloud/CameraManager
我知道拍摄图像很简单:
cameraManager.capturePictureWithCompletition({ (image, error) -> Void in
self.myImage = image
})
但是,我想在文档目录中而不是在相机胶卷中存储。
有人有想法吗?也许像视频记录?
cameraManager.startRecordingVideo()
cameraManager.stopRecordingVideo({ (videoURL, error) -> Void in
NSFileManager.defaultManager().copyItemAtURL(videoURL, toURL: self.myVideoURL, error: &error)
})
【问题讨论】:
标签: swift image frameworks nsdocumentdirectory