func imagePickerController(picker: UIImagePickerController, didFinishPickingImage image: UIImage, editingInfo: [String : AnyObject]?) {
print("Image Uploaded")
self.dismissViewControllerAnimated(true, completion: nil)
filterimage.image = image
}
@IBAction func importImage(sender: AnyObject) {
let image = UIImagePickerController()
image.delegate = self
image.sourceType = UIImagePickerControllerSourceType.Camera
image.allowsEditing = false
self.presentViewController(image, animated: true, completion: nil)
}
After you close the app and you open it again, the image will disappear. How can I make it to when I open the app again the image stays there. I know how to do it with text with NSUserDefaults
but how do you do it with an image?