How do I make a UIDatePicker display specific dates?

My application has a need to let the user choose a date from a list of dates conforming to a certain pattern. For instance, they may need to choose a monday from a list Monday's for a month. Is there a way to get a UIDatePicker to limit date choices to a certain subset or should I just use a UIPickerView?


You cannot limit which dates are selectable in a UIDatePicker. You could change the date when the value changed event is sent, but since the user cannot tell which dates are "good" and which are not, it's a bad UI choice to do so.

Use a UIPickerView of your own making instead.

Need Your Help

Tool to automatically inline JavaScript function calls?

javascript inline-functions

Inlining JavaScript function calls speeds up the execution and also reduces the code size after gzipping, as described in this article:

When publishing, what is exactly supposed to be published? visual-studio-2012 publish publishing

I'm not used with "publishing" a project via visual studio. I'm trying to do so since yesterday and I've found out these things: