[ios] Initialize Sloynik engine at startup.

This commit is contained in:
Yury Melnichek 2011-04-07 23:18:20 +02:00 committed by Alex Zolotarev
parent 86afe3e8af
commit 4f2c70ffd1

View file

@ -2,6 +2,7 @@
#import "MapViewController.h"
#import "GuideViewController.h"
#import "SettingsManager.h"
#import "../../Sloynik/Shared/global.hpp"
@implementation MapsAppDelegate
@ -31,6 +32,10 @@
- (void) applicationDidFinishLaunching: (UIApplication *) application
{
// Initialize Sloynik engine.
// It takes long for the first time, so we do it while startup image is visible.
GetSloynikEngine();
// Add the tab bar controller's current view as a subview of the window
[window addSubview:mapViewController.view];
[window makeKeyAndVisible];