Add AM/PM to datepicker?
问题 My UIDatePicker is set to UIDatePickerModeTime but on the apple documentation it says The date picker displays hours, minutes, and (optionally) an AM/PM designation. The exact items shown and their order depend upon the locale set. An example of this mode is [ 6 | 53 | PM ]. . How do i add AM/PM because on my device, those aren't options and it instead uses a 24 hour clock? 回答1: This will depend on the settings of the user. If you go to Settings -> General -> Date & Time. there is a "24-Hour"