예 당신은 인터넷 연결이 필요하지 않기 때문에 그것을 위해 GPS를 사용할 수 있지만, 그것은
(1) (2) 건물이나 거리 내에서 제대로 작동하지 않는 위치를 얻을 수있는 시간이 오래 걸립니다 이 당신이 그것을 할 수있는 방법으로
다음 GPS가 다음 OFF 상태가 현재 위치를 얻을 수 있습니다 경우 귀하의 답변에 대한
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{
CLLocation * currentLocation = [locations lastObject];
NSLog(@"%f",currentLocation.coordinate.longitude);
NSLog(@"%f",currentLocation.coordinate.latitude);
if (newLocation.horizontalAccuracy < 0) {
return;
}
NSTimeInterval interval = [newLocation.timestamp timeIntervalSinceNow];
if (abs(interval)>20) {
return;
}
}
감사 남자 ... –
안녕하세요 AYAZ, 당신은 내게 알려 수 있습니까? 사용자가 iPhone의 설정에서 위치 옵션을 OFF로 설정 한 경우 GPS를 사용하여 현재 위치 또는 위도와 경도를 얻을 수 있습니까? –
GPS를 사용할 수없고 인터넷 데이터가 연결되어 있지 않은 경우 셀 타워를 기반으로하는 위치에서 가능할 수 있지만 장치에는 셀룰러 칩이 설치되어 있어야합니다. –