获取地点位置 [英] Get Place Location

查看:83
本文介绍了获取地点位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将关于地点的信息放到我的屏幕上的UILable中。 [国家] [城市] [街道],也许坐标[lat] [lng]。例如在我的UILable应该是:

您的位置是德国柏林Tiergarten有人可以告诉我真的很简单的代码我怎么能得到这样的信息放在我的UILable?

解决方案

MapKit框架(iPhone OS 3.0的一部分)为你提供这个。特别是MKPlacemark对象,您可以使用MKReverseGeocoder获取一组坐标。


I need put information about place, where is iPhone now, to UILable in my screen. [Country][City][Street] and maybe coordinates [lat][lng]. For example in my UILable should be:

Your location is German, Berlin, Tiergarten

Can someone show me really simple code how can i get such information that put in my UILable?

解决方案

The MapKit framework (part of iPhone OS 3.0) provides this for you. Specifically the MKPlacemark object, which you can obtain for a set of co-ordinates using an MKReverseGeocoder.

这篇关于获取地点位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆