문자열을 cllocationCoordInate2d로 변환합니다
-
20-08-2019 - |
문제
NSString이있는 배열이 있습니다. 이들 중 일부는 위도와 경도이며 아래 코드와 함께 사용해야합니다.
lattext와 lontext는 내가 코디네이트로 사용하려는 내 문자열입니다 ....
CLLocationCoordinate2D pinlocation=mapView.userLocation.coordinate;
pinlocation.latitude = latText;
pinlocation.longitude =lonText;
해결책
pinlocation.latitude = [latText doubleValue];
제휴하지 않습니다 StackOverflow