0

I am making an iOS application and need to get the location of a user. I just need to get the state/province of the user and so a cell-tower signal will serve the purpose. Is there an iOS API that will allow me to do this ?

Thanks

Ashish Agarwal
  • 14,555
  • 31
  • 86
  • 125
  • you should probably use the [CLLocationManager](http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html#//apple_ref/occ/cl/CLLocationManager) class for that. – Jakob Weisblat Jan 22 '13 at 01:33

2 Answers2

0

As Jake suggested Core location would be your best bet, try this for some example code How to find your current location with CoreLocation

Community
  • 1
  • 1
JSA986
  • 5,870
  • 9
  • 45
  • 91
0

Check out "Getting the User's Location" in the Location Awareness Programming Guide

Chris Wagner
  • 20,773
  • 8
  • 74
  • 95