summaryrefslogtreecommitdiff
path: root/test/ios/MGLTViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/ios/MGLTViewController.m')
-rw-r--r--test/ios/MGLTViewController.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ios/MGLTViewController.m b/test/ios/MGLTViewController.m
new file mode 100644
index 0000000000..9caa64c79a
--- /dev/null
+++ b/test/ios/MGLTViewController.m
@@ -0,0 +1,18 @@
+#import "MGLTViewController.h"
+#import "MGLMapView.h"
+
+@implementation MGLTViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ MGLMapView *mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds
+ accessToken:@"pk.eyJ1IjoianVzdGluIiwiYSI6Ik9RX3RRQzAifQ.dmOg_BAp1ywuDZMM7YsXRg"];
+ mapView.viewControllerForLayoutGuides = self;
+ mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
+
+ [self.view addSubview:mapView];
+}
+
+@end