UIDatePicker setting minute to 1 when on the view 0 is selected

前端 未结 2 1616
死守一世寂寞
死守一世寂寞 2021-01-13 15:53

I\'m using the same UIDatePicker instance to set three different values. Two of them are dates and the last is a time (e.g. 1:05).

My issue is regarding

2条回答
  •  逝去的感伤
    2021-01-13 16:27

    use UIDatePickerModeTime instead of count-down instead to select 00, but surely it will look some different from count-down, have a look:

    _datePicker.datePickerMode = UIDatePickerModeTime;
    _datePicker.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"NL"];
    

提交回复
热议问题