UIDatePicker uses mode as a timer

I have a UIDatePicker in my view, I set DatePicker in time mode. bydefault shows hours and minutes, and I need minutes and seconds in this collector.

Guide me how I can use UIDatepicker for minutes and seconds, and not for hours and minutes.

thank

+3
source share
1 answer

There is no datePickerMode date for minutes and seconds. You must make your own using UIPickerView.

If you look at an example of the UICatalog Apple project (find it in the apple documentation), there are examples of custom pickers in it so you can see how to make yourself.

+4
source

All Articles