UIDatePicker
doesn't support this. You will need to use UIPickerView
and add whatever components you need with whatever values should be shown.
To format the date in your text field, use an NSDateFormatter
to format the date as needed.
Question
I want to set the datepicker in XCode-Interface Builder to just use the rollers of the "day" and "month"? I've search, but everyone want to keep month and year but not the day. I know that we could set the datePicker Mode to "date" but the year appear. So, do you know how we could implement this ? Another problem, i want to show the day name in my textField, i don't know how we can make that.
my text field is like that :
Monday 1 june
Solution
UIDatePicker
doesn't support this. You will need to use UIPickerView
and add whatever components you need with whatever values should be shown.
To format the date in your text field, use an NSDateFormatter
to format the date as needed.