Skip to content

Instantly share code, notes, and snippets.

@jfahrenkrug
Created September 8, 2009 14:06
Show Gist options
  • Save jfahrenkrug/182936 to your computer and use it in GitHub Desktop.
Save jfahrenkrug/182936 to your computer and use it in GitHub Desktop.
/* ----- Map Controller --------------- */
mapController = [[MapController alloc] init];
/* ------------- Map View ----------------- */
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(510, 65, 400, 400) apiKey:''];
[mapView setDelegate:self];
mapController.mapView = mapView;
[contentView addSubview:mapView];
/* ---------- Coordinates Label -------------- */
coordinatesLabel = [[CPTextField alloc] initWithFrame:CGRectMake(510, 465, 200, 35)];
[coordinatesLabel setTextColor:[CPColor colorWithHexString:@"009900"]];
[coordinatesLabel setFont:[CPFont systemFontOfSize:14.0]];
[coordinatesLabel setEditable:NO];
[coordinatesLabel setStringValue:@"-/-"];
[mapController setCoordinatesLabel:coordinatesLabel];
[contentView addSubview:coordinatesLabel];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment