How to disable AM/PM in UIDatePicker

前端 未结 5 1808
青春惊慌失措
青春惊慌失措 2020-12-15 18:48

How to disable or hide AM/PM in UIDatePicker from code / interface builder?

I want to have 24 hours time picker mode in UIDatePicker. Pleas

5条回答
  •  醉梦人生
    2020-12-15 19:37

    AFAIK you can't (within limits of SDK). The AP/PM will disappear if the user chooses to use 24-hour format. Make your own UIPickerView in case this is important.

提交回复
热议问题