uidatepicker

add second field when uipickerview in countdowntimer mode in iPhone

一曲冷凌霜 提交于 2020-07-09 08:26:27
问题 i have a functionility for show count down timer in format, but when uidatepicker in count down timer mode , it show only HH:MM. how i can add a extra field for second in uidatepickerview. 回答1: how i can add a extra field for second in uidatepickerview. You can't. UIDatePicker only displays hours and minutes in countdown mode. If you need to display seconds as well, you'll have to recreate it yourself using a UIPickerView . As always, you should file an enhancement request to request this

UIDatePicker is set to 15 minute intervals, but the date if the user doesn't scroll isn't in 15 minute intervals

最后都变了- 提交于 2020-07-07 06:52:52
问题 I am creating an iOS application that uses two UIDatePickers. They show just hours and minutes (my app still uses the month, day, and year though). In main.storyboard I have set the UIDatePickers' Date values to Current Date. And, I have set their interval to 15 minutes. The issue is that if I don't scroll the UIDatePickers, the date value I get from them isn't in 15 minute intervals. If I scroll them I do get 15 minute intervals. Example: The actual time is 8:47PM. The UIDatePicker loads to