In my application I want people to be able to select a minute and second rather than an hour and a minute.
Is there a way to remove the hours and add seconds as an option for a UIDatePicker?
I did a quick review of the documentation and I don't think you can do just minutes and seconds. After all, this would not really be a Date picker anymore, just a minute/second picker.
Not knowing your app at all, I think you should be able to create your own UIPickerView instance or subclass and configure it with Minutes and Seconds easily enough.
I realize this is a bit late, but in case anyone else find this I made LETimeIntervalPicker a while ago. It's like a UIDatePicker but with hours, minutes and seconds. https://github.com/ludvigeriksson/LETimeIntervalPicker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With