PDA

View Full Version : How to use MapKit? Any examples?




slavemonster
Mar 19, 2009, 10:42 PM
Anyone knows how to use the new mapkit?



Jeremy1026
Mar 19, 2009, 10:48 PM
Anyone knows how to use the new mapkit?

Right now you have to do all the initializations in code (no IB). Its all in the documentation.

slavemonster
Mar 22, 2009, 10:44 PM
Tried this without luck
- (void)loadView {
MKMapView *gmap = [[MKMapView alloc] initWithFrame:self.view.frame];
[self.view addSubview:gmap];
}

so I'm asking if there's any (coding) tutorial to create a MapView

macfanboy
Mar 22, 2009, 11:37 PM
Wirelessly posted (Mozilla/5.0 (iPod; U; CPU iPhone OS 2_2_1 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5H11 Safari/525.20)

Tried this without luck


- (void)loadView {


MKMapView *gmap = [[MKMapView alloc] initWithFrame:self.view.frame];


[self.view addSubview:gmap];


}





so I'm asking if there's any (coding) tutorial to create a MapView





EDIT: stupid mobile forums removing parts of the previous post.

iPhoneBasti
May 6, 2009, 08:28 AM
look at this tutorial..
[URL="http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/"]