简单的ImagePicker导致“无法创建日志目录”

时间:2015-09-29 15:21:53

标签: ios swift cocoa-touch uiimagepickercontroller

我采用非常典型的方法从应用程序

使用相机
@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。)

我已经检查了thisthat个线程以及其他许多线程,但仍然无法确定应该更改的内容。

提前致谢

0 个答案:

没有答案