Reputation: 19954
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?
Upvotes: 7
Views: 3482
Reputation: 388
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
Upvotes: 2
Reputation: 4677
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.
Upvotes: 3