How to pin point location in google map in XCode - iphone

Hey guys,
I'm building an iPhone app for my company and in one of the sections I want to create a tab bar item where it pin point the location of my company. So far I built a basic map view, but I haven't figured what would the code be for pin pointing the location of my company. hope someone can help, thanks

Did you try investigating MapCallouts from Apple Sample Code?
http://developer.apple.com/library/ios/#samplecode/MapCallouts/Introduction/Intro.html

Related

iPhone dev - How can I display a google map in an app without using the browser? And other map questions

I'm making an iPhone application that I want to take in a bunch of addresses and display them on a map using different colored pins to mark the different addresses. First of all, is this possible? Secondly, I want a way to do it without having to open up the map in a browser, but display it directly as a view. Is this possible? Thanks.
yes it is possible Tim, check here:
http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/
Yes, that is possible. You can put a MKMapView directly into the view. This can be dragged and dropped in the XIB file! Make sure that you also include the Map Kit framework in your project, too. For addresses, I would look at the link to the tutorial Jacky Boy gave.

mapkit and table view sample code - iPhone SDK

I've searched all over and have been trying for a few weeks now (and even bought a few books.. unheard of) to have a segmented control work which allows for switching between the mapview and a tableview. Basically I'm using parsed data from xml to get the locations of stores (say trader joes) and I'm able to get the locations to come onto the mapview successfully. But I've no idea how to pass the parsed data to a tableview. I'm quite frustrated as this seems to be a relatively popular design for location based apps.
Any sample code, links, suggested reading, tutorials would be greatly appreciated.
Thanks in advance,
j
I have a project on github that has a mapview and a table view that are both populated from a single NSDictionary. I think that is what you want. The project is not a complete XCode project, but you should be able to adapt it to your needs.
Sounds like the question is not related to UISegmentedControl and MKMapView? You just have problem populating a UITableView? If that is the case, you can just check out Apple's sample code for UITableView at iPhone developer portal. A quick search online gets me this http://www.icodeblog.com/2008/08/08/iphone-programming-tutorial-populating-uitableview-with-an-nsarray/ which I think is relevant.
And you are probably pasting your XML into an array before showing it in the map view, so you should be able to use the same array to populate UITableView

iOS MapKit label building on park map

What I'm trying to achieve is that there is an event being held at Exhibition Park in Canberra (that's in Australia) which makes use of the building on the property. What I'm not sure about is how to show these buildings and label them in MapKit when they don't appear in the maps application.
Does anyone have any solutions about this? Should I just use pin points and annotations or is there a better way of accomplishing things?
Please note that I'm unfamiliar with MapKit so as much detail in the answer would be appreciated.
Thanks,
Matt.
I would recommend you use MKPinAnnotation to add pins to the map, configured to show callouts when you tap on them.
The easiest way to pickup MapKit is to watch the WWDC video on the subject, which you can download from the iOS developer portal.

iphone google maps and waypoints

I have a number of waypoints stored in my app database, how would I pass these to the MapView in my app ?
If anyone can point me in the direction of a tutorial or some sample code would be great.
Regards,
Stephen
See MKAnnotation and MKAnnotationView

how to find restaurant list near current location using mapkit in iphone

I want to know how to find nearest restaurant using mapkit in iphone sdk?
I want to display current location of user and then want to display restaurant near tht location...
if neone have idea please help me in this
Thanks
nir
This should help
http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/
Should help you get started. There is a series of map tutorials.