Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请告诉我如何将 int 转换为 NSTimeInterval?
谢谢你。
NSTimeInterval 只是 double 的 typedef。随意将 int 分配给 NSTimeIntervalValue,就像将 int 分配给 double 一样。