2012-07-23 95 views
1

我有以下简单的代码看起来如果设备有显著位置变化监测支持:significantLocationChangeMonitoringAvailable不工作的iOS 4

if (![CLLocationManager significantLocationChangeMonitoringAvailable]) 
{UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Sorry" message:@"Your device won't support the significant location change." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; 
    [alert show]; 
    return;         
} 

这永远的iOS 5设备上的返回是的,但在iOS 4.3:否设备。该设备有3G。

根据documentation,此API支持4.0。

回答

0

该API支持,但该功能不支持,直到iOS 5及以上。