aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/iPhone/FixMyStreet/Classes/MainViewController.m
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-12 11:20:08 +0000
committerStruan Donald <struan@exo.org.uk>2012-03-12 12:07:43 +0000
commitd14bdc65777a6347c419f29e355fa9f1745de739 (patch)
treec4bc1cad6ab061d69fd6a58d5dc5b3c44deb79c8 /phonegap/iPhone/FixMyStreet/Classes/MainViewController.m
parent1b15ca0aea334d20fb0f19fed36bc948668e2a14 (diff)
rough initial code for iPhone phonegap app
Diffstat (limited to 'phonegap/iPhone/FixMyStreet/Classes/MainViewController.m')
-rw-r--r--phonegap/iPhone/FixMyStreet/Classes/MainViewController.m70
1 files changed, 70 insertions, 0 deletions
diff --git a/phonegap/iPhone/FixMyStreet/Classes/MainViewController.m b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.m
new file mode 100644
index 000000000..ef5d1c0be
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.m
@@ -0,0 +1,70 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+//
+// MainViewController.h
+// FixMyStreet
+//
+// Created by Struan Donald on 08/03/2012.
+// Copyright __MyCompanyName__ 2012. All rights reserved.
+//
+
+#import "MainViewController.h"
+
+@implementation MainViewController
+
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
+{
+ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
+ if (self) {
+ // Custom initialization
+ }
+ return self;
+}
+
+- (void)didReceiveMemoryWarning
+{
+ // Releases the view if it doesn't have a superview.
+ [super didReceiveMemoryWarning];
+
+ // Release any cached data, images, etc that aren't in use.
+}
+
+#pragma mark - View lifecycle
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view from its nib.
+}
+
+- (void)viewDidUnload
+{
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ // Return YES for supported orientations
+ return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
+}
+
+@end