Byte Byte - 1 year ago 157
iOS Question

Chaning mode of datePicker

I have my datePicker as

enter image description here

But how do I make it like below

enter image description here

Answer Source

change the UIDatePickerMode to UIDatePickerModeCountdownTimer.

for e.g

var pickerView = UIDatePicker()
pickerView.datePickerMode = .CountDownTimer

for more information you can see in Apple Documents

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download