Skip to content

Instantly share code, notes, and snippets.

@maplinkapi
Created March 21, 2013 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maplinkapi/5215075 to your computer and use it in GitHub Desktop.
Save maplinkapi/5215075 to your computer and use it in GitHub Desktop.
NSString* pinImagePath = [[NSBundle mainBundle] pathForResource:@”pin” ofType:@”png”];
UIImage *pinImage = [[UIImage alloc] initWithContentsOfFile:pinImagePath];
MapPoint *mapPoint = [[[MapPoint alloc] initWithLatitude:-23.6390300 andLongitude:-46.698603] autorelease];
Pin *pin = [[Pin alloc] initWithImage:pinImage andPoint:mapPoint];
[mapTemplate addPin:pin];
[pin release];
[pinImage release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment