Hey can i use a UIPickerView to display date, month and Year(Only upto 2015) in IOS?. Please help me with a coded idea..
It is as simple as that just copy paste this code in your viewdidload
. Here in this code the setMaximumDate
set the what you want for. That will be your Max Date. Here in this piece of code I used max date
as TODAYS DATE
.
UIDatePicker *datePicker = [[UIDatePicker alloc]init];
datePicker.datePickerMode = UIDatePickerModeDate;
[datePicker setMaximumDate:[NSDate date]];