我是开始学习iOS开发的新手。
如何从Apple文档中了解Foundation Framework中返回的属性或方法的类型。
我阅读了苹果文档,但没有说明返回类型。
例如
timeIntervalSince1970
Instance Property
timeIntervalSince1970
Language
SwiftObjective-C
SDKs
iOS 2.0+
macOS 10.0+
tvOS 9.0+
watchOS 2.0+
The interval between the date object and 00:00:00 UTC on 1 January 1970.
Declaration
@property(readonly) NSTimeInterval timeIntervalSince1970;
Discussion
# This property’s value is negative if the date object is earlier than 00:00:00 UTC on 1 January 1970.
timeIntervalSince1970
返回浮点数,为什么苹果文档没有提及呢?我怎么知道其他Class方法,实例方法,属性的返回类型?