如何在 Objective-C 中将 int 转换为 NSTimeInteravl?
请告诉我如何将 int 转换为 NSTimeInterval?
谢谢。
Please do tel me how to convert int to NSTimeInterval?
Thank You.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NSTimeInterval 只是 double 的类型定义。您可以随意将 int 分配给 NSTimeIntervalValue,就像将 int 分配给 double 一样。
NSTimeInterval is just a typedef for double. Feel free to assign the int to the NSTimeIntervalValue the same way you can assign an int to a double.