그래서이 튜토리얼을 따라 MapKit
프레임 워크로 특정 위치의 우편 번호를 얻으려고합니다.Xcode에서 "Deprecated"경고 - initWithCoordinate
MKReverseGeocoder *geocoder = [[MKReverseGeocoder alloc] initWithCoordinate:coord];
엑스 코드에서 http://www.icodeblog.com/2009/12/22/introduction-to-mapkit-in-iphone-os-3-0-part-2/
는initWithCoordinate
은 더 이상 사용되지 않았다는 경고 포즈.
누구든지 내가 무엇을해야한다고 말할 수 있습니까?
확인 문서를 사용하여 CLGeocoder 클래스의 존재를 확인, 아이폰 OS의 이전 버전을 지원하는 경우, 그것은 일반적으로 어떤 방법을 (들) 대신 사용해야합니다 상태. – johnnieb
지금 당장 문서를 확인하고 있습니다. 대체 방법에 대한 참조는 없습니다. – Legolas
@johnnieb - 흥미롭게도 문서에서는'initWithCoordinate :'가 더 이상 사용되지 않는 것으로 보이지 않고 "iOS 3.0 이상에서 사용 가능"으로 표시합니다. [MKReverseGeocoder 클래스 참조] (http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKReverseGeocoder_Class/Reference/Reference.html%23//apple_ref/doc/uid/TP40008323) –