samedi 29 novembre 2014

Instant error when I want to save p

The code shows no error before I run it, and when I run it, it works. As soon as I hit the button that I created (which is the the only IBAction button as you can see in the screenshots, I get the following error. Been trying to solve this error for days now:



2014-11-29 00:56:13.991 Instagram[13565:732342] [PLLogging] ***** Error: logging directory does not exist /Users/danieldelouya/Library/Developer/CoreSimulator/Devices/EB9FF2B2-AB5D-4F67-A355-C45C058C12C5/data/Library/Logs/CrashReporter/DiagnosticLogs/


2014-11-29 00:56:14.017 Instagram[13565:732342] [PLLogging] ***** Error: logging directory does not exist /Users/danieldelouya/Library/Developer/CoreSimulator/Devices/EB9FF2B2-AB5D-4F67-A355-C45C058C12C5/data/Library/Logs/CrashReporter/DiagnosticLogs/


2014-11-29 00:56:14.121 Instagram[13565:732342] [PLLogging] ***** Error: logging directory does not exist /Users/danieldelouya/Library/Developer/CoreSimulator/Devices/EB9FF2B2-AB5D-4F67-A355-C45C058C12C5/data/Library/Logs/CrashReporter/DiagnosticLogs/



Here's my code. I'm doing Rob Percivals Udemy Swift course btw.



import UIKit

class ViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate {

@IBOutlet weak var pickedImage: UIImageView!

@IBAction func pickImage(sender: AnyObject) {
var image = UIImagePickerController()
image.delegate = self
image.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
image.allowsEditing = false
self.presentViewController(image, animated: true, completion: nil)
}

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}



Aucun commentaire:

Enregistrer un commentaire