How can I customize a UIDatePicker to only show the month and year? There's an existing mode that shows the day, month, and year, but I'd like to get rid of the day portion.
Simply put, you can't. UIDatePicker does not have any API for only showing years and months.
You therefore have 3 possible recourses:
UIPickerViewUIDatePicker in Date mode and just ignore the day portionI vote for #1 and #3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With