I need to add two hours intervals to my UIDatePicker.
The first interval should contain the hours from 12:00 to 15:00 and the second one from 19:00 to 22:00.
Is there any way to do this?
Thank you!
I need to add two hours intervals to my UIDatePicker.
The first interval should contain the hours from 12:00 to 15:00 and the second one from 19:00 to 22:00.
Is there any way to do this?
Thank you!
2
Answers
Like @Isuru & @Eli Gooch said. I have created a custom time object using UIPickerView. My implementation:
Try creating the time objects yourself and showing them in a UIPickerView. https://developer.apple.com/documentation/uikit/uipickerview