Is there a way to have a UIDatePicker show month and year only? By default it shows month, day year. I dont want the day to show. I saw this but i dont think its what i need: UIDatePicker select Month and Year 。
最佳答案
没有 API 可以做到这一点。如果您希望此功能可用,请 file a report requesting it 。
因此,如果您在应用程序中需要它,则必须使用 UIPickerView
自己重新创建它。
关于objective-c - UIDatePicker 只显示月份和年份,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7492698/