views:

98

answers:

2

Hello,

I've discovered today the app "Qype" and now I'd like to know how I can build a function to locate myself like in quype.

For those who dont know this app: It's an app that shows you Cafés, Bars, Restaurants etc. near you. When I'm starting Qype there's a question: "Qype want to locate your position. Do you want to allow it?"

Are there any References from Apple or any tutorials to learn how to do this?

Thank you!

A: 

To get and use your location you should use CoreLocation framework in your application.

"Appname want to locate your position. Do you want to allow it?" is just a standard message iphone system automatically shows when application attempts to use CoreLocation services for the first time.

Vladimir
+2  A: 

What you want is the CoreLocation sample from Apple. Here it is

http://developer.apple.com/iphone/library/samplecode/LocateMe/index.html

Joe Cannatti