Search code examples
iphoneobjective-ctypeconverternstimeinterval

how to convert int to NSTimeInteravl in Objective-C?


Please do tel me how to convert int to NSTimeInterval?

Thank You.


Solution

  • 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.