How do you get the current location of iPhone through code? I need to track the location using GPS.
You're looking for the "CoreLocation" API.
Here's a tutorial