CFTimeInterval
在Objective C中使用而不是double的原因是什么?
问问题
1898 次
1 回答
2
The actual type used might change from one platform to another, as int
did when CPUs transitioned from 32 to 64bits. Also, variables defined with the platform independent type could be considered more self descriptive - nobody will wonder if a CFTimeInterval variable is in hours, milliseconds, etc, because the type is documented to mean seconds.
于 2013-09-04T01:43:03.053 回答