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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -