简体   繁体   English

UIDatePicker 作为带秒的倒数计时器 (Swift)

[英]UIDatePicker as Countdown timer with seconds (Swift)

So, apple updated the timer app in IOS 11, and one of the most useful things they've done is add a seconds column in the countdown timer, like this: countdown timer因此,苹果在 IOS 11 中更新了计时器应用程序,他们所做的最有用的事情之一就是在倒数计时器中添加了一个秒列,如下所示:倒数计时器

I am building an app for personal use and need to use the timer, but for intervals smaller than a minute, but on xcode I can't use the same date picker that Apple used.我正在构建一个供个人使用的应用程序,需要使用计时器,但间隔小于一分钟,但在 xcode 上,我无法使用 Apple 使用的相同日期选择器。 Is there a way to build one or to make the UIDatePicker look like that?有没有办法构建一个或使 UIDatePicker 看起来像那样?

Note: I don't understand Objective-C注意:我不懂Objective-C

您正在寻找UIPickerView来帮助您配置类似 UIDatePicker 的界面,但可以从中选择自定义值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM