Using Maps within my app...

Discussion in 'Public Game Developers Forum' started by cramzy, Aug 28, 2009.

  1. cramzy

    cramzy Well-Known Member

    Hi guys,

    I've been struggling with this for quite some time, but I can't seem to find the way...

    I have an app where I want to put maps (into the app...OS 3). But how do I do that? I used IB to put MKMapView, but then what? I would essentially link it to object in my view controller, but in the view controller there is no class MKMapView so I can't create the object...

    Any help how to use maps within the app?

    Thanks a lot!

    Cheers,
    ILIYA
     
  2. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    You hve to declare an MKMapView IBOutlet in your .h file, and then link it in interface builder. You have to do something like:

    Code:
    mapView = [[MKMapView alloc] ...];
    
    You could look at this tutorial: http://nexes-code.blogspot.com/2009_07_01_archive.html

    Hope that helps. :)
     

Share This Page