Skip to content

Instantly share code, notes, and snippets.

@GuillaumeJasmin
GuillaumeJasmin / GoogleMapsIconMarker.m
Last active April 13, 2023 05:02
iOS GoogleMaps icon marker with image and text
// image
UIImageView *iconView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 50)];
iconView.image = [UIImage imageNamed:@"my-icon-image"];
// text
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 35, 50)];
label.text = @"test";
[iconView addSubview:label];
// grab it