Creating a iOS type date picker with custom text in it.

I recently had to design a date picker, similar to the above but with custom text in it. For ex: the year component needs to have 2001,2000 and the string “no idea” in it as shown below.
picker1
picker2
I could not use the default date picker since it doesn’t allow us to change the data source for it.
The best way to do it would be, take a UIPicker and use it. We need three components for it. Month, Day and Year.
Also to make it look like a circular and infinite loop.
Implementation with code: https://github.com/kmdarshan/Custom-Date-Picker

In

Leave a Reply

Your email address will not be published. Required fields are marked *