如何在Swift 3中使用NSTimeInterval

Hes*_*Mad 1 xcode sprite-kit swift

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

如何在Swift 3中使用NSTimeInterval?

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

Ste*_*fan 9

与许多其他类型标识符一样,NS前缀已从NSTimeIntervalSwift 3中删除.因此,您可以使用TimeInterval.