MKReverseGeocoder:位置字符串存储在哪里?
我找到了这个教程:
http://evilrockhopper.com/2010/01/ iphone-development-reverse-geocoding/
并实现了这段代码:
if (reverseGeocoder != nil)
{
// release the existing reverse geocoder to stop it running
[reverseGeocoder release];
}
// use whatever lat / long values or CLLocationCoordinate2D you like here.
CLLocationCoordinate2D locationToLookup = {52.0,0};
MKReverseGeocoder *reverseGeocoder = [[MKReverseGeocoder alloc] initWithCoordinate:locationToLookup];
reverseGeocoder.delegate = self;
[reverseGeocoder start];
问题是,当我开始reverseGeocoding时,位置字符串存储在哪里? 我有坐标,我把它们交给reverseCeocoder来找到我的地址,但是如何在某个字符串中获取这个地址?
I found this tutorial:
http://evilrockhopper.com/2010/01/iphone-development-reverse-geocoding/
and implemented this code:
if (reverseGeocoder != nil)
{
// release the existing reverse geocoder to stop it running
[reverseGeocoder release];
}
// use whatever lat / long values or CLLocationCoordinate2D you like here.
CLLocationCoordinate2D locationToLookup = {52.0,0};
MKReverseGeocoder *reverseGeocoder = [[MKReverseGeocoder alloc] initWithCoordinate:locationToLookup];
reverseGeocoder.delegate = self;
[reverseGeocoder start];
The question is, when I started reverseGeocoding, where is location string stored?
I have coordinate and I give them to reverseCeocoder to find me address, but how to get this address in some string for example?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需阅读
MKReverseGeocoder
的文档:因此,您必须在委托中实现这两个方法:
地理编码器在为您提供信息时将调用它们。
Just read the documentation for
MKReverseGeocoder
:So you have to implement these two methods in your delegate:
and the geocoder will call them when it has information for you.