source: other-projects/Greenstone-on-iPhone/Web/Classes/WebAppDelegate.m@ 24253

Last change on this file since 24253 was 24253, checked in by ak19, 13 years ago

Greenstone web interface on iPhone

File size: 2.6 KB
Line 
1//
2// WebAppDelegate.m
3// Web
4//
5// Created by mac on 7/6/11.
6// Copyright 2011 __MyCompanyName__. All rights reserved.
7//
8
9#import "WebAppDelegate.h"
10
11@implementation WebAppDelegate
12
13@synthesize window;
14@synthesize webView;
15
16
17#pragma mark -
18#pragma mark Application lifecycle
19
20- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
21
22 // Override point for customization after application launch.
23
24 [self.window makeKeyAndVisible];
25
26 return YES;
27}
28
29
30- (void)applicationWillResignActive:(UIApplication *)application {
31
32 [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.nzdl.org"]]];
33 /*
34 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.
35 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.
36 */
37}
38
39
40- (void)applicationDidEnterBackground:(UIApplication *)application {
41 /*
42 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.
43 If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
44 */
45}
46
47
48- (void)applicationWillEnterForeground:(UIApplication *)application {
49 /*
50 Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
51 */
52}
53
54
55- (void)applicationDidBecomeActive:(UIApplication *)application {
56 /*
57 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.
58 */
59}
60
61
62- (void)applicationWillTerminate:(UIApplication *)application {
63 /*
64 Called when the application is about to terminate.
65 See also applicationDidEnterBackground:.
66 */
67}
68
69
70#pragma mark -
71#pragma mark Memory management
72
73- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
74 /*
75 Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
76 */
77}
78
79
80- (void)dealloc {
81 [window release];
82 [super dealloc];
83}
84
85
86@end
Note: See TracBrowser for help on using the repository browser.