Created
March 21, 2013 17:48
-
-
Save maplinkapi/5215075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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