Statistics
| Branch: | Revision:

root / json-framework-3.2.0 / Examples / TweetStream / TweetStream / TweetStreamAppDelegate.m @ 3ebe9884

History | View | Annotate | Download (2.3 kB)

1
//
2
//  TweetStreamAppDelegate.m
3
//  TweetStream
4
//
5
//  Created by Stig Brautaset on 24/05/2011.
6
//  Copyright 2011 Stig Brautaset. All rights reserved.
7
//
8

    
9
#import "TweetStreamAppDelegate.h"
10

    
11
#import "TweetStreamViewController.h"
12

    
13
@implementation TweetStreamAppDelegate
14

    
15

    
16
@synthesize window=_window;
17

    
18
@synthesize viewController=_viewController;
19

    
20
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
21
{
22
    // Override point for customization after application launch.
23
     
24
    self.window.rootViewController = self.viewController;
25
    [self.window makeKeyAndVisible];
26
    return YES;
27
}
28

    
29
- (void)applicationWillResignActive:(UIApplication *)application
30
{
31
    /*
32
     Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
33
     Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
34
     */
35
}
36

    
37
- (void)applicationDidEnterBackground:(UIApplication *)application
38
{
39
    /*
40
     Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
41
     If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
42
     */
43
}
44

    
45
- (void)applicationWillEnterForeground:(UIApplication *)application
46
{
47
    /*
48
     Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
49
     */
50
}
51

    
52
- (void)applicationDidBecomeActive:(UIApplication *)application
53
{
54
    /*
55
     Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
56
     */
57
}
58

    
59
- (void)applicationWillTerminate:(UIApplication *)application
60
{
61
    /*
62
     Called when the application is about to terminate.
63
     Save data if appropriate.
64
     See also applicationDidEnterBackground:.
65
     */
66
}
67

    
68

    
69
@end