问题
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.
来源:https://stackoverflow.com/questions/3316570/how-do-i-convert-an-nsinteger-to-an-nstimeinterval