-4

可能重复:
如何检索用户的当前城市名称?

我正在开发基于 gps 的应用程序,我想在 iphone 中获取当前位置,我如何获取它。比如德里,昌迪格拉。

4

3 回答 3

1

使用 CLLocationManager 获取当前地理位置并使用 MKReverseGeocoder 或 Google API 获取位置

于 2012-08-09T10:16:44.460 回答
0

使用 CoreLocation 框架。使用 CLLocation Manager,您可以获得当前位置的详细信息。

于 2012-08-09T10:27:56.740 回答
-1

If you're writing a native application in Objective-C, there are plenty of resources out there that answer your question. I'd recommend you start with Apples own documentation, then come back with a more detailed question if you have specific problems:

Introduction: http://developer.apple.com/library/ios/#DOCUMENTATION/UserExperience/Conceptual/LocationAwarenessPG/Introduction/Introduction.html

How to: http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html

于 2012-08-09T10:22:15.547 回答