summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2015-05-05 11:50:01 -0500
committerBrad Leege <bleege@gmail.com>2015-05-05 11:50:01 -0500
commit804c092c81c01a4ba9bc25654c30f5f285e6eb54 (patch)
tree7f23bb3c49d3a1933a98e78e850d22cc77f20499 /ios
parent4ce4e979ff85f8fc135fccf675c6a5e8939cdd66 (diff)
downloadqtlocation-mapboxgl-804c092c81c01a4ba9bc25654c30f5f285e6eb54.tar.gz
#1225 - Simplifying MGLAccountManager for initial setup and access to AccessToken
Diffstat (limited to 'ios')
-rw-r--r--ios/app/MBXAppDelegate.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/ios/app/MBXAppDelegate.m b/ios/app/MBXAppDelegate.m
index 0a81e83fb8..90c552aba0 100644
--- a/ios/app/MBXAppDelegate.m
+++ b/ios/app/MBXAppDelegate.m
@@ -21,7 +21,8 @@
}
if ( ! accessToken) NSLog(@"No access token set. Mapbox vector tiles won't work.");
- [MGLAccountManager sharedInstanceWithAccessToken:accessToken];
+ // Start Mapbox GL SDK
+ [MGLAccountManager setAccessToken:accessToken];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:[MBXViewController new]];