애플1 ios 지도 mkmap 1 ios 지도 mkmap 1 텍스트 기반의 주소를 그 주소에 해당하는 좌표를 가지는 CLLocation 객체로 변환하는 CLGeocoder 클래스를 이용해서 미국 캘리포니아의 애플사의 좌표를 가져오는 예제를 살펴본다. let addressString = "One Infinite Loop, Cupertino, CA 95014" CLGeocoder().geocodeAddressString(addressString) { (placemarks, error) in if error != nil{ print("에러발생 \(error!.localizedDescription)") }else if placemarks!.count > 0{ let placemark = placemarks![0] let location = pl.. 2018. 5. 16. 이전 1 다음