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