2012-07-23 3 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 장치에서 yes를 반환을하지만, 아이폰 OS 4.3에는 반환을 장치. 장치에는 3G가 있습니다.

이 API는 documentation에 따라 4.0에서 지원됩니다.

답변

0

API는 지원되지만 iOS 5 이상 버전에서는 지원되지 않습니다.

관련 문제