因此,我试图通过遵循本教程获取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) –