I need to restrict the years in UIDatePicker, i.e set year is hidden if the year is more than our maximum date.
For this I already tried like myDatePicker.maximumDate=NSDate()
My date picker like UIDatePickerView
Now how can I remove or hide the year values more than(i.e 2016) our maximum date.
Thankyou
If that is really what you want - I think you have to build a custom picker yourself using UIPickerView.
Per iOS docs, "The appearance of UIDatePicker is not customizable."