views:

213

answers:

2

I think a value of 1.0 represents one second, but I'm not very sure with that. Is that a hexadecimal system? What would you provide to give exactly one minute for duration?

+5  A: 

It's a time interval, in seconds. One minute would be 60.0.

zpasternack
All time intervals in Cocoa APIs (CoreFoundation / Foundation / UIKit / AppKit / etc.) are in units of seconds.
Jens Alfke
+2  A: 

This is in the included documentation you can find on Apple's site or contextually within Xcode

From the documentation setAnimationDuration:

Sets the animation duration used by all animations within this transaction group.

  • (void)setAnimationDuration:(CFTimeInterval)duration

Parameters duration An interval of time used as the duration.

and CFTimeInterval

CFTimeInterval Type used to represent elapsed time in seconds.

Louis Gerbarg
I was confused by that CFTimeInterval. So this thing is just nothing more than a double value?
Thanks