因此,我試圖通過遵循本教程獲取MapKit
框架的特定位置的郵政編碼。 http://www.icodeblog.com/2009/12/22/introduction-to-mapkit-in-iphone-os-3-0-part-2/Xcode中的「棄用」警告 - initWithCoordinate
在
MKReverseGeocoder *geocoder = [[MKReverseGeocoder alloc] initWithCoordinate:coord];
Xcode中提出了一個警告,initWithCoordinate
已被棄用。
任何人都可以告訴我該怎麼辦?
檢查文件是否存在,它通常規定哪種方法(S)應改爲使用。 – 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) –