diff options
Diffstat (limited to 'iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m')
-rw-r--r-- | iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m b/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m new file mode 100644 index 000000000..081591ebf --- /dev/null +++ b/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m @@ -0,0 +1,48 @@ +// +// FixMyStreetAppDelegate.m +// FixMyStreet +// +// Created by Matthew on 25/09/2008. +// Copyright 2008 UK Citizens Online Democracy. All rights reserved. +// + +#import "FixMyStreetAppDelegate.h" +#import "InputTableViewController.h" + +@implementation FixMyStreetAppDelegate + +@synthesize window, navigationController; +@synthesize image, location, subject; + +- (void)applicationDidFinishLaunching:(UIApplication *)application { + InputTableViewController *inputTableViewController = [[InputTableViewController alloc] initWithNibName:@"MainViewController" bundle:[NSBundle mainBundle]]; +// InputTableViewController *inputTableViewController = [[InputTableViewController alloc] initWithStyle:UITableViewStyleGrouped]; + // So we had our root view in a nib file, but we're creating our navigation controller programmatically. Ah well. + UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:inputTableViewController]; + self.navigationController = aNavigationController; + [aNavigationController release]; + [inputTableViewController release]; + + UIView *controllersView = [navigationController view]; + [window addSubview:controllersView]; + [window makeKeyAndVisible]; + + // Need to fetch defaults here, plus anything saved when we quit last time +} + +- (void)dealloc { + [window release]; + [navigationController release]; + [super dealloc]; +} + +- (void)applicationWillTerminate:(UIApplication *)application { + // Save state in case they're just in the middle of a phone call... + +} + +// Report stuff +-(void)uploadReport { +} + +@end |