Is there any way possible to set a UIDatePicker in XCode-Interface Builder to just use the rollers of the "month" and "year" without the "day"? I've tried checking the file properties in the IB yet failed to find a solution for my problem...
Is there any way possible to set a UIDatePicker in XCode-Interface Builder to just use the rollers of the "month" and "year" without the "day"? I've tried checking the file properties in the IB yet failed to find a solution for my problem...
What you can do is restrict the range of dates, that can be used for input using the properties maximumDate and minimumDate
This has the added benefit of being automatically localized. i.e. the order of month and day is correct.
You can use Third Party custom Date Picker as iOS Default Date Picker do not provide one.
Try https://github.com/nairteashop/NTMonthYearPicker.
Worked for me