Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AYamout23

macrumors newbie
Original poster
Sep 6, 2010
1
0
How to code a locator for finding the nearest X from a user's location?

Say that I am making an app for viewing all the bars near a person's location.

(The app is an iPhone app built using the xCode)

How can I make the default map view zoomed on the user's location?
And HOW can I make it show annotations for all the bars in the shown area? (In terms of code)

Thank your for any help given.
 
First, you will need to find a source for the geolocation data.

Second, take a look at the MKAnnotation class.

Good luck :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.