cocoaTouch/SchemeEditViewController.m
author nemo
Sat, 03 Apr 2010 06:52:26 +0000
changeset 3281 2f3be13e1140
parent 3116 97dc65a47b15
permissions -rw-r--r--
Comment out this drawing of hat - I'm pretty sure it is redundant, did try to check various combinations
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2687
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     1
//
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     2
//  SchemeEditViewController.m
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     3
//  hwengine
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     4
//
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     5
//  Created by Vittorio on 08/01/10.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     7
//
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     8
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
     9
#import "SchemeEditViewController.h"
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    10
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    11
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    12
@implementation SchemeEditViewController
2701
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    13
@synthesize cell0, table;
2687
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    14
/*
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    15
 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    16
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    17
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    18
        // Custom initialization
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    19
    }
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    20
    return self;
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    21
}
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    22
*/
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    23
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    24
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    25
- (void)viewDidLoad {
2701
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    26
	table.backgroundColor = [UIColor clearColor];
2687
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    27
    [super viewDidLoad];
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    28
}
2701
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    29
2687
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    30
// Override to allow orientations other than the default portrait orientation.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    31
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    32
    // Return YES for supported orientations
3116
97dc65a47b15 branch ipad/iphone files to keep compatibility between versions
koda
parents: 2701
diff changeset
    33
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
2687
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    34
}
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    35
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    36
- (void)didReceiveMemoryWarning {
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    37
	// Releases the view if it doesn't have a superview.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    38
    [super didReceiveMemoryWarning];
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    39
	
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    40
	// Release any cached data, images, etc that aren't in use.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    41
}
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    42
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    43
- (void)viewDidUnload {
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    44
	// Release any retained subviews of the main view.
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    45
	// e.g. self.myOutlet = nil;
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    46
}
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    47
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    48
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    49
- (void)dealloc {
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    50
    [super dealloc];
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    51
}
2701
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    52
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    53
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    54
 
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    55
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    56
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    57
        return cell0;
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    58
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    59
2687
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    60
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    61
2701
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    62
}
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    63
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView{
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    64
	return 1;
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    65
}
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    66
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    67
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    68
	return 1;
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    69
}
3a8560c00f78 settings tab has now a very nice iphone-like interface
koda
parents: 2687
diff changeset
    70
2687
28b8330b8af1 add stub files for other views and prevent useless crashes
koda
parents:
diff changeset
    71
@end