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.
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
Leave a Reply