ios - UIDatePicker select Month and Year -
I need UIDatePicker
to select only months and years. I examined the class reference documents. It looks like UIDatePicker
is a UIView
. I thought UIPickerView
can be a sub-view and if I can hold it I can hide the component. But not It was not possible Do I have to make my own custom picker? any idea?
Yes, you probably want to make your own picker, you need it or anything sub-class Not even though; Just use a normal UIPickerView
and return the appropriate value from your UIPickerViewDelegate
/ UIPickerViewDataSource
methods.
Comments
Post a Comment