2
// CompassViewController.m
5
// Created by döme on 30.07.2009.
6
// Copyright 2009 __MyCompanyName__. All rights reserved.
9
#import "CompassViewController.h"
12
@implementation CompassViewController
15
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
16
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
17
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
18
// Custom initialization
25
// Implement loadView to create a view hierarchy programmatically, without using a nib.
31
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
38
// Override to allow orientations other than the default portrait orientation.
39
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
40
// Return YES for supported orientations
41
return (interfaceOrientation == UIInterfaceOrientationPortrait);
45
- (void)didReceiveMemoryWarning {
46
// Releases the view if it doesn't have a superview.
47
[super didReceiveMemoryWarning];
49
// Release any cached data, images, etc that aren't in use.
52
- (void)viewDidUnload {
53
// Release any retained subviews of the main view.
54
// e.g. self.myOutlet = nil;