gpt4 book ai didi

swift - 如何在 Swift 3 中使用 NSTimeInterval

转载 作者:搜寻专家 更新时间:2023-11-01 05:48:38 25 4
gpt4 key购买 nike

我想在 Swift 3 中使用 NSTimeInterval 但我不能。它似乎只存在于 Swift 2 中。

如何在 Swift 3 中使用 NSTimeInterval?

提前感谢您的想法和解决方案!

最佳答案

与许多其他类型标识符一样,NS 前缀已从 Swift 3 中的 NSTimeInterval 中剥离。因此,您可以只使用 TimeInterval.

关于swift - 如何在 Swift 3 中使用 NSTimeInterval,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41462924/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com