How do I convert an NSInteger to an NSTimeInterval

2019-07-16 06:01发布

问题:

how to convert NSInteger to NSTimeInterval?

回答1:

NSInteger is normally defined as an int or long. NSTimeInterval is a plain double, so you can just assign one value to another.