Last active
August 4, 2017 22:03
-
-
Save maplinkapi/5215078 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]; | |
MLMapPoint *mapPoint = [[[MLMapPoint alloc] initWithLatitude:-23.6390300 andLongitude:-46.698603] autorelease]; | |
MLPin *pin = [[MLPin 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