I'm wondering, in objective-c
, how can I convert a float
type primative number to NSTimeInterval
?
The float
type value represents the number of seconds in my case
I'm wondering, in objective-c
, how can I convert a float
type primative number to NSTimeInterval
?
The float
type value represents the number of seconds in my case
NSTimeInterval is just typedef to a double, so there is nothing to do in case of a float. No trouble at all... :)
float t = 5;
NSTimeInterval ti = t;
Cheers.