我采用非常典型的方法从应用程序
使用相机@IBAction func takePicture(sender: UIButton) {
var myPickerController = UIImagePickerController()
myPickerController.delegate = self
myPickerController.sourceType = UIImagePickerControllerSourceType.Camera
self.presentViewController(myPickerController, animated: true, completion: nil)
}
func imagePickerController(picker: UIImagePickerController, didFinishPickingImage image: UIImage!, editingInfo: [NSObject : AnyObject]!) {
self.images = image
self.dismissViewControllerAnimated(true, completion: nil)
}
但是,无论何时我使用它,终端都会出现以下提示:
[PLLogging]无法创建日志目录:无法完成操作。 (可可错误513。)
我已经检查了this和that个线程以及其他许多线程,但仍然无法确定应该更改的内容。
提前致谢