aboutsummaryrefslogtreecommitdiffstats
path: root/iphone/FixMyStreet/Classes/AboutViewController.m
diff options
context:
space:
mode:
authormatthew <matthew>2008-10-23 15:23:06 +0000
committermatthew <matthew>2008-10-23 15:23:06 +0000
commit008565200b6e6997534525d62d084c627b6d2bc9 (patch)
tree2a5e9abad7c11596bc02ba6e9692a3e5998ca805 /iphone/FixMyStreet/Classes/AboutViewController.m
parent0b973dd816ed8e30b17833c20f7b9eea587f4371 (diff)
Add About page.
Diffstat (limited to 'iphone/FixMyStreet/Classes/AboutViewController.m')
-rw-r--r--iphone/FixMyStreet/Classes/AboutViewController.m44
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