Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIDatePicker using mode as timer

I have a UIDatePicker on my view,I have set DatePicker in time mode. bydefault it is showing hours and minutes and i need minutes and seconds in that picker.

Guide me that how can i use UIDatepicker for min and sec not for hour and min.

thanks

like image 579
Shahid Aslam Avatar asked Jun 04 '26 13:06

Shahid Aslam


1 Answers

There is no datePickerMode for minutes and seconds. You'd have to make your own using UIPickerView.

If you look at the Apple sample project UICatalog (search for it in the apple documentation) it has examples of custom pickers so you can see how to make you own.

like image 70
DenverCoder9 Avatar answered Jun 06 '26 02:06

DenverCoder9



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!