equal
deleted
inserted
replaced
24 -(void) viewDidLoad { |
24 -(void) viewDidLoad { |
25 [super viewDidLoad]; |
25 [super viewDidLoad]; |
26 |
26 |
27 // load all the grave names and store them into graveArray |
27 // load all the grave names and store them into graveArray |
28 self.graveArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:GRAVES_DIRECTORY() error:NULL]; |
28 self.graveArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:GRAVES_DIRECTORY() error:NULL]; |
|
29 |
|
30 self.title = NSLocalizedString(@"Choose hedgehog graves",@""); |
29 } |
31 } |
30 |
32 |
31 -(void) viewWillAppear:(BOOL)animated { |
33 -(void) viewWillAppear:(BOOL)animated { |
32 [super viewWillAppear:animated]; |
34 [super viewWillAppear:animated]; |
33 [self.tableView reloadData]; |
35 [self.tableView reloadData]; |
99 } |
101 } |
100 |
102 |
101 |
103 |
102 #pragma mark - |
104 #pragma mark - |
103 #pragma mark Memory management |
105 #pragma mark Memory management |
104 - (void)didReceiveMemoryWarning { |
106 -(void) didReceiveMemoryWarning { |
105 // Releases the view if it doesn't have a superview. |
107 // Releases the view if it doesn't have a superview. |
106 [super didReceiveMemoryWarning]; |
108 [super didReceiveMemoryWarning]; |
107 // Relinquish ownership any cached data, images, etc that aren't in use. |
109 // Relinquish ownership any cached data, images, etc that aren't in use. |
108 } |
110 } |
109 |
111 |
110 - (void)viewDidUnload { |
112 -(void) viewDidUnload { |
111 self.lastIndexPath = nil; |
113 self.lastIndexPath = nil; |
112 self.teamDictionary = nil; |
114 self.teamDictionary = nil; |
113 self.graveArray = nil; |
115 self.graveArray = nil; |
|
116 MSG_DIDUNLOAD(); |
114 [super viewDidUnload]; |
117 [super viewDidUnload]; |
115 MSG_DIDUNLOAD(); |
|
116 } |
118 } |
117 |
119 |
118 - (void)dealloc { |
120 -(void) dealloc { |
119 [graveArray release]; |
121 [graveArray release]; |
120 [teamDictionary release]; |
122 [teamDictionary release]; |
121 [lastIndexPath release]; |
123 [lastIndexPath release]; |
122 [super dealloc]; |
124 [super dealloc]; |
123 } |
125 } |