istereo2

view src/ios/app_delegate.m @ 18:25d821ab1ca2

fixed ios bugs
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 01 Oct 2015 08:36:55 +0300
parents
children
line source
1 #import "app_delegate.h"
2 #import "viewctl.h"
4 @implementation AppDelegate
6 - (BOOL)application: (UIApplication*)app didFinishLaunchingWithOptions: (NSDictionary*)opt
7 {
8 /* Override point for customization after application launch. */
9 self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
10 self.window.backgroundColor = [UIColor whiteColor];
11 [self.window makeKeyAndVisible];
13 ViewController *vctl = [[ViewController alloc] initWithNibName: nil bundle: nil];
14 self.window.rootViewController = vctl;
16 return YES;
17 }
19 - (void)applicationWillResignActive: (UIApplication*)app
20 {
21 /* Sent when the application is about to move from active to inactive
22 * state. This can occur for certain types of temporary interruptions (such
23 * as an incoming phone call or SMS message) or when the user quits the
24 * application and it begins the transition to the background state. Use
25 * this method to pause ongoing tasks, disable timers, and throttle down
26 * OpenGL ES frame rates. Games should use this method to pause the game.
27 */
28 }
30 - (void)applicationDidEnterBackground: (UIApplication*)app
31 {
32 /* Use this method to release shared resources, save user data, invalidate
33 * timers, and store enough application state information to restore your
34 * application to its current state in case it is terminated later. If
35 * your application supports background execution, this method is called
36 * instead of applicationWillTerminate: when the user quits.
37 */
38 }
40 - (void)applicationWillEnterForeground: (UIApplication*)app
41 {
42 /* Called as part of the transition from the background to the inactive
43 * state; here you can undo many of the changes made on entering the
44 * background.
45 */
46 }
48 - (void)applicationDidBecomeActive: (UIApplication*)app
49 {
50 /* Restart any tasks that were paused (or not yet started) while the
51 * application was inactive. If the application was previously in the
52 * background, optionally refresh the user interface.
53 */
54 }
56 - (void)applicationWillTerminate: (UIApplication*)app
57 {
58 /* Called when the application is about to terminate. Save data if
59 * appropriate. See also applicationDidEnterBackground: .
60 */
61 }
63 @end