2015-09-22 37 views
0

在CoreLocation API,我不知道为什么它被写为:locationServiceEnabled只允许iPhone 4?

+ (BOOL)locationServicesEnabled __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_0); 

请注意,只有在那里的iPhone 4中的代码。这是否意味着它只适用于iPhone 4?

回答

2

这意味着,此功能可用从mac os 10.7和iOS 4.0开始