Strange date picker behaviour Xcode, swift 3
问题 My current project is a timer which uses a date picker to set the amount of time the user wants before the timer goes off (say 1 minute, 6 hours and two minutes etc.). The problem lies in the amount of time that the date picker believes it has been set for. Below is the code which I am using to set the time. @IBOutlet weak var datePicker: UIDatePicker! var timeAmount:Double = 0 @IBAction func startButton() { timeAmount = Double(datePicker.countDownDuration) let trigger =