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에서 지원됩니다.