문제

NSString이있는 배열이 있습니다. 이들 중 일부는 위도와 경도이며 아래 코드와 함께 사용해야합니다.

lattext와 lontext는 내가 코디네이트로 사용하려는 내 문자열입니다 ....

   CLLocationCoordinate2D pinlocation=mapView.userLocation.coordinate;

    pinlocation.latitude = latText;

    pinlocation.longitude  =lonText;
도움이 되었습니까?

해결책

pinlocation.latitude = [latText doubleValue];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top