bendodson / MonthYearWheelPicker

A UIPickerView subclass that allows you to quickly add a picker for just month and year; in most cases it can be used as a drop-in replacement for UIDatePicker.
https://bendodson.com
The Unlicense
184 stars 42 forks source link

how to set customise Date according to requirement. #16

Closed barotbhavesh closed 3 years ago

barotbhavesh commented 5 years ago

If i want to customise the Date or set the date according to me so it is possible to do that?

chriswilson1982 commented 4 years ago

I achieve this by converting a Date object to DateComponents, extracting the month and year and then setting the pickerView sections based on this, using the standard UIKit API.