author | nemo |
Sun, 28 Feb 2010 17:56:21 +0000 | |
changeset 2890 | 1dcda7bce4c3 |
parent 2701 | 3a8560c00f78 |
child 3116 | 97dc65a47b15 |
permissions | -rw-r--r-- |
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 |
|
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
31 |
/* |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
32 |
// 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
|
33 |
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
34 |
// Return YES for supported orientations |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
35 |
return (interfaceOrientation == UIInterfaceOrientationPortrait); |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
36 |
} |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
37 |
*/ |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
38 |
|
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
39 |
- (void)didReceiveMemoryWarning { |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
40 |
// 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
|
41 |
[super didReceiveMemoryWarning]; |
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 |
// 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
|
44 |
} |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
45 |
|
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
46 |
- (void)viewDidUnload { |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
47 |
// Release any retained subviews of the main view. |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
48 |
// e.g. self.myOutlet = nil; |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
49 |
} |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
50 |
|
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
51 |
|
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
52 |
- (void)dealloc { |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
53 |
[super dealloc]; |
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
54 |
} |
2701
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
55 |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { |
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 |
|
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 |
|
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
60 |
return cell0; |
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
61 |
|
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
62 |
|
2687
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
63 |
|
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
64 |
|
2701
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 |
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView{ |
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
67 |
return 1; |
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
68 |
} |
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 |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ |
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
71 |
return 1; |
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
72 |
} |
3a8560c00f78
settings tab has now a very nice iphone-like interface
koda
parents:
2687
diff
changeset
|
73 |
|
2687
28b8330b8af1
add stub files for other views and prevent useless crashes
koda
parents:
diff
changeset
|
74 |
@end |