How can I set 10 PM as a minimum hour and 4 AM as a maximum hour in a only time mode UIDatePicker?
Asked
Active
Viewed 301 times
2
-
swift? objective c? – Shank Jun 28 '16 at 15:10
-
nvm this is **Duplicate**, http://stackoverflow.com/questions/10494174/minimum-and-maximum-date-in-uidatepicker – Shank Jun 28 '16 at 15:11
-
Yeah, seems like there is a Swift answer in the duplicate question. – Glenn Howes Jun 28 '16 at 15:23
-
I added a day component to the date, so 4 AM is one day after 10 PM. The problem is that I want to show it in only time mode date picker and it let's me pick only the the time between 10PM and 12AM and not until 4AM. – Yael R. Jun 28 '16 at 15:31