istereo2
diff src/ios/app_delegate.m @ 0:7841e9365065
new istereo done right
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 16 Sep 2015 07:10:02 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/ios/app_delegate.m Wed Sep 16 07:10:02 2015 +0300 1.3 @@ -0,0 +1,63 @@ 1.4 +#import "app_delegate.h" 1.5 +#import "viewctl.h" 1.6 + 1.7 +@implementation AppDelegate 1.8 + 1.9 +- (BOOL)application: (UIApplication*)app didFinishLaunchingWithOptions: (NSDictionary*)opt 1.10 +{ 1.11 + /* Override point for customization after application launch. */ 1.12 + self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; 1.13 + self.window.backgroundColor = [UIColor whiteColor]; 1.14 + [self.window makeKeyAndVisible]; 1.15 + 1.16 + ViewController *vctl = [[ViewController alloc] initWithNibName: nil bundle: nil]; 1.17 + self.window.rootViewController = vctl; 1.18 + 1.19 + return YES; 1.20 +} 1.21 + 1.22 +- (void)applicationWillResignActive: (UIApplication*)app 1.23 +{ 1.24 + /* Sent when the application is about to move from active to inactive 1.25 + * state. This can occur for certain types of temporary interruptions (such 1.26 + * as an incoming phone call or SMS message) or when the user quits the 1.27 + * application and it begins the transition to the background state. Use 1.28 + * this method to pause ongoing tasks, disable timers, and throttle down 1.29 + * OpenGL ES frame rates. Games should use this method to pause the game. 1.30 + */ 1.31 +} 1.32 + 1.33 +- (void)applicationDidEnterBackground: (UIApplication*)app 1.34 +{ 1.35 + /* Use this method to release shared resources, save user data, invalidate 1.36 + * timers, and store enough application state information to restore your 1.37 + * application to its current state in case it is terminated later. If 1.38 + * your application supports background execution, this method is called 1.39 + * instead of applicationWillTerminate: when the user quits. 1.40 + */ 1.41 +} 1.42 + 1.43 +- (void)applicationWillEnterForeground: (UIApplication*)app 1.44 +{ 1.45 + /* Called as part of the transition from the background to the inactive 1.46 + * state; here you can undo many of the changes made on entering the 1.47 + * background. 1.48 + */ 1.49 +} 1.50 + 1.51 +- (void)applicationDidBecomeActive: (UIApplication*)app 1.52 +{ 1.53 + /* Restart any tasks that were paused (or not yet started) while the 1.54 + * application was inactive. If the application was previously in the 1.55 + * background, optionally refresh the user interface. 1.56 + */ 1.57 +} 1.58 + 1.59 +- (void)applicationWillTerminate: (UIApplication*)app 1.60 +{ 1.61 + /* Called when the application is about to terminate. Save data if 1.62 + * appropriate. See also applicationDidEnterBackground: . 1.63 + */ 1.64 +} 1.65 + 1.66 +@end