0
나는 위치의 초기 값을 가지고있는 statringpoint와 다음 코드를 사용하여 newlocation 사이의 거리를 계산하려고하는데 거리가 멀어지고 있습니다. 아무도 나를 도울 수 없습니까?아이폰에서 두 위치 사이의 거리를 얻는 것
CLLocationDistance distance = [newLocation getDistanceFrom:startingPoint];
나는 위치의 초기 값을 가지고있는 statringpoint와 다음 코드를 사용하여 newlocation 사이의 거리를 계산하려고하는데 거리가 멀어지고 있습니다. 아무도 나를 도울 수 없습니까?아이폰에서 두 위치 사이의 거리를 얻는 것
CLLocationDistance distance = [newLocation getDistanceFrom:startingPoint];
코드가 작동해야합니다. 어쩌면 startingPoint은 입니다.입니까?
은 newLocation 및 startingPoint 유형 모두입니다. CLLocation *? –