How to display user location in mapkit?

Posted by 4thSpace on Stack Overflow See other posts from Stack Overflow or by 4thSpace
Published on 2010-03-14T19:02:44Z Indexed on 2010/03/14 19:05 UTC
Read the original article Hit count: 599

Filed under:
|
|
|

I'd like to display the blue pulsing dot for a user's location. I'm doing this:

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation    *)newLocation fromLocation:(CLLocation *)oldLocation{
//some other stuff here
[self.mapView setShowsUserLocation:YES];
}

But I eventually get

-[MKUserLocation establishment]: unrecognized selector sent to instance 0x125e90

Should I be doing this some other way?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk