æè¿Swiftãåå¼·ãå§ããåå¿è ã§ãã DatePickerã§è¨å®ããå¤ãNSDateåã§ä¿åãããã®ã§ããã @IBAction func changed(sender: UIDatePicker) { let date2 = datepicker1.date let myDefault = NSUserDefaults.standardUserDefaults() myDefault.setObject(date2,forKey:"date") myDefault.synchronize() } ã®ãããªè¨è¿°ã§åã£ã¦ãã¾ããï¼ ã¾ããä¿åããå¤ãèªã¿åºãããã®ã§ãã let userDefaults = NSUserDefaults.standardUserDefaults() let date2: NSDate = userDefaults.objectForKey("date")
{{#tags}}- {{label}}
{{/tags}}