diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-02-09 18:01:40 -0800 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-02-09 18:01:40 -0800 |
commit | d4d4cd44151423d374e373798f09d12157babc27 (patch) | |
tree | ede100edc58475b969b62fba8f3bcb219b29beda /test/ios/MGLTAppDelegate.m | |
parent | 0ee6044ccf49bb32a25c57ce25af15bcd58ca77b (diff) | |
download | qtlocation-mapboxgl-d4d4cd44151423d374e373798f09d12157babc27.tar.gz |
move iOS code from gl-cocoa to this project
Diffstat (limited to 'test/ios/MGLTAppDelegate.m')
-rw-r--r-- | test/ios/MGLTAppDelegate.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ios/MGLTAppDelegate.m b/test/ios/MGLTAppDelegate.m new file mode 100644 index 0000000000..4bd6b64882 --- /dev/null +++ b/test/ios/MGLTAppDelegate.m @@ -0,0 +1,18 @@ +#import "MGLTAppDelegate.h" +#import "MGLTViewController.h" + +@implementation MGLTAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + UINavigationController *wrapper = [[UINavigationController alloc] initWithRootViewController:[MGLTViewController new]]; + self.window.rootViewController = wrapper; + wrapper.navigationBarHidden = YES; + wrapper.toolbarHidden = YES; + [self.window makeKeyAndVisible]; + + return YES; +} + +@end |