在 Swift 中设置倒数计时器 3

Setting the Count Down Timer in Swift 3

我正在使用日期选择器,它设置为倒计时模式。默认情况下它显示当前时间。我如何将其设置为在启动时显示特定时间?提前致谢。

您可以使用 date 属性

UIDatePicker > date

Use this property to get and set the currently selected date