diff options
Diffstat (limited to 'iphone/FixMyStreet/Classes/AboutViewController.m')
-rw-r--r-- | iphone/FixMyStreet/Classes/AboutViewController.m | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/iphone/FixMyStreet/Classes/AboutViewController.m b/iphone/FixMyStreet/Classes/AboutViewController.m new file mode 100644 index 000000000..98cdbc304 --- /dev/null +++ b/iphone/FixMyStreet/Classes/AboutViewController.m @@ -0,0 +1,44 @@ +// +// AboutViewController.m +// FixMyStreet +// +// Created by Matthew on 23/10/2008. +// Copyright 2008 __MyCompanyName__. All rights reserved. +// + +#import "AboutViewController.h" + +@implementation AboutViewController + +/* +// Override initWithNibName:bundle: to load the view using a nib file then perform additional customization that is not appropriate for viewDidLoad. +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { + if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { + // Custom initialization + } + return self; +} +*/ + +// Implement viewDidLoad to do additional setup after loading the view. +- (void)viewDidLoad { + [super viewDidLoad]; + self.title = @"About"; + self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; +} + + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { + // Return YES for supported orientations + return (interfaceOrientation == UIInterfaceOrientationPortrait); +} + +- (void)dealloc { + [super dealloc]; +} + +-(IBAction)donate:(id)sender { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.mysociety.org/donate/"]]; +} + +@end |