Created
September 8, 2009 14:06
-
-
Save jfahrenkrug/182936 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
/* ----- 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