How to disable certain dates/hours in DatePicker IOS?

Viewed 2057

I was wondering if there is anyway to disable a certain day or hour in a DatePicker?

I have looked around and many people suggested "UIControlEventValueChanged", I don't think thats a good idea specially if I have to disable more than 10 hours as users will get frustrated.

Is there any other way to overcome this problem? Also I don't really know what days/hours will be disabled but I receive them from my database.

Even colouring those days a different colour would be good

1 Answers
Related