locationServiceEnabled 只允许 iPhone 4?
locationServiceEnabled only allow iPhone 4?
在CoreLocation API中,我不明白为什么写成:
+ (BOOL)locationServicesEnabled __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_0);
请注意,代码中只有 Iphone 4。这是否意味着它只适用于 iphone 4?
这意味着此功能 从 mac os 10.7 和 iOS 4.0 开始可用。
在CoreLocation API中,我不明白为什么写成:
+ (BOOL)locationServicesEnabled __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_0);
请注意,代码中只有 Iphone 4。这是否意味着它只适用于 iphone 4?
这意味着此功能 从 mac os 10.7 和 iOS 4.0 开始可用。