source: trunk/monsterz/ios/classes/MonsterzAppDelegate.m @ 739

Last change on this file since 739 was 739, checked in by sam, 10 years ago

ios: clean up code.

File size: 1.4 KB
Line 
1//
2// Monsterz
3//
4// Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#import "MonsterzAppDelegate.h"
12#import "MonsterzViewController.h"
13
14@implementation MonsterzAppDelegate
15
16@synthesize window;
17@synthesize viewController;
18
19- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
20{
21    [self.window addSubview:self.viewController.view];
22    return YES;
23}
24
25- (void)applicationWillResignActive:(UIApplication *)application
26{
27    [self.viewController stopAnimation];
28}
29
30- (void)applicationDidBecomeActive:(UIApplication *)application
31{
32    [self.viewController startAnimation];
33}
34
35- (void)applicationWillTerminate:(UIApplication *)application
36{
37    [self.viewController stopAnimation];
38}
39
40- (void)applicationDidEnterBackground:(UIApplication *)application
41{
42    // Handle any background procedures not related to animation here.
43}
44
45- (void)applicationWillEnterForeground:(UIApplication *)application
46{
47    // Handle any foreground procedures not related to animation here.
48}
49
50- (void)dealloc
51{
52    [viewController release];
53    [window release];
54    [super dealloc];
55}
56
57@end
58
Note: See TracBrowser for help on using the repository browser.