Entered the parameter in front of the class:
let defaults = NSUserDefaults.standardUserDefaults() , after it there is a button that makes a comparison, and in it there is a picture + animation and text input:
if TextField1.text == navigationItem.title { self.StarTextField.hidden = false UIView.animateWithDuration(4.0, animations: { self.StarTextField.frame = CGRect(x: 142, y: -800, width: 316, height: 158)} defaults.setObject(StarTextField, forKey: "StarTextFieldData") return stopFlashingbutton(stopListening()) } else { print("inCorrect TextField") } sort of like should save the picture in memory. Further ViewDidLoad () I write:
defaults.objectForKey("StarTextFieldData") Run, crash ... what to do?)
Ps is the Spark CollectionViewController along with the ViewController (the button is in the VC).