Created
December 10, 2014 17:00
-
-
Save rodericj/1e924ac4b380c188b06d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
+ (FOMarker *)markerWithIconURL:(NSString *)iconURL color:(UIColor *)color { | |
UIImageView *pinImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44, 44)]; | |
UIImage *pinImage = [UIImage imageNamed:@"mapPin"];// [self ipMaskedImageNamed:@"mapPin" color:color]; | |
pinImageView.image = pinImage; | |
UIImageView *iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44, 44)]; | |
iconImageView.image = [UIImage imageNamed:@"poweredByFoursquare_36x36"]; | |
// Taken out to simplify and troubleshoot | |
// [iconImageView setImageWithURL:[NSURL URLWithString:iconURL]]; | |
[pinImageView addSubview:iconImageView]; | |
FOMarker *marker = [[self alloc] initWithImageView:pinImageView iconImageView:iconImageView]; | |
return marker; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment