I want to remove year from iOS date picker. Need to use in iPhone app.
Asked
Active
Viewed 2,309 times
3 Answers
2
This is down to the users phone localization settings... You'll need to create some sort of custom UIPicker if you want to make it the same for all.

user250322
- 73
- 6
0
You can't use the UIDatePicker
because The UIDatePicker
only supports the following modes
typedef enum {
UIDatePickerModeTime,
UIDatePickerModeDate,
UIDatePickerModeDateAndTime,
UIDatePickerModeCountDownTimer
} UIDatePickerMode;
Create a view and controller that implement the UIPickerViewDelegate and create your own - you may find a little more detail here

Community
- 1
- 1

Jhaliya - Praveen Sharma
- 31,697
- 9
- 72
- 76