-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first push of test harness build for the map view
- Loading branch information
Showing
9 changed files
with
160 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
build | ||
|
||
#*.xcodeproj/* | ||
!*.xcodeproj/project.pbxproj | ||
*.DS_Store | ||
|
||
§# Below from https://github.com/myell0w/MTStatusBarOverlay/blob/master/.gitignore | ||
|
||
*.pbxuser | ||
*.mode1v3 | ||
*.mode2v3 | ||
!default.pbxuser | ||
!default.mode1v3 | ||
!default.mode2v3 | ||
|
||
# Xcode 4 | ||
*.xcworkspace | ||
xcuserdata | ||
*.xcuserdatad | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// MapViewController.h | ||
// sukey_mapView | ||
// | ||
// Created by Tim Storey on 29/05/2011. | ||
// Copyright 2011 Lateral. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <MapKit/MapKit.h> | ||
#import <CoreLocation/CoreLocation.h> | ||
|
||
|
||
@interface MapViewController : UIViewController { | ||
|
||
UIView *mainView; | ||
MKMapView *mapView; | ||
|
||
} | ||
|
||
@end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// | ||
// MapViewController.m | ||
// sukey_mapView | ||
// | ||
// Created by Tim Storey on 29/05/2011. | ||
// Copyright 2011 Lateral. All rights reserved. | ||
// | ||
|
||
#import "MapViewController.h" | ||
|
||
|
||
@implementation MapViewController | ||
|
||
- (void)dealloc | ||
{ | ||
[super dealloc]; | ||
} | ||
|
||
- (void)didReceiveMemoryWarning | ||
{ | ||
// Releases the view if it doesn't have a superview. | ||
[super didReceiveMemoryWarning]; | ||
|
||
// Release any cached data, images, etc that aren't in use. | ||
} | ||
|
||
#pragma mark - View lifecycle | ||
|
||
/* | ||
// Implement loadView to create a view hierarchy programmatically, without using a nib. | ||
- (void)loadView | ||
{ | ||
} | ||
*/ | ||
|
||
|
||
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. | ||
- (void)viewDidLoad | ||
{ | ||
[super viewDidLoad]; | ||
mainView = [[UIView alloc] init]; | ||
[mainView setBackgroundColor:[UIColor colorWithRed:48 green:48 blue:48 alpha:1]]; | ||
// [mainView setBackgroundColor:[UIColor blueColor]]; | ||
self.view = mainView; | ||
|
||
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(10, 30, 300, 300)]; | ||
[mapView setBackgroundColor:[UIColor grayColor]]; | ||
[mainView addSubview:mapView]; | ||
} | ||
|
||
|
||
- (void)viewDidUnload | ||
{ | ||
[super viewDidUnload]; | ||
// Release any retained subviews of the main view. | ||
// e.g. self.myOutlet = nil; | ||
} | ||
|
||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation | ||
{ | ||
// Return YES for supported orientations | ||
return (interfaceOrientation == UIInterfaceOrientationPortrait); | ||
} | ||
|
||
@end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.