author | nemo |
Mon, 27 Dec 2010 12:51:08 -0500 | |
branch | 0.9.15 |
changeset 4723 | 29ab0d49c3e6 |
parent 4478 | 05029b4d8490 |
child 4976 | 088d40d8aba2 |
permissions | -rw-r--r-- |
3829 | 1 |
/* |
2 |
* Hedgewars-iOS, a Hedgewars port for iOS devices |
|
3 |
* Copyright (c) 2009-2010 Vittorio Giovara <vittorio.giovara@gmail.com> |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
17 |
* |
|
18 |
* File created on 02/04/2010. |
|
19 |
*/ |
|
20 |
||
3547 | 21 |
|
22 |
#import "SingleTeamViewController.h" |
|
4478 | 23 |
#import <QuartzCore/QuartzCore.h> |
3547 | 24 |
#import "HogHatViewController.h" |
25 |
#import "GravesViewController.h" |
|
26 |
#import "VoicesViewController.h" |
|
27 |
#import "FortsViewController.h" |
|
28 |
#import "FlagsViewController.h" |
|
29 |
#import "LevelViewController.h" |
|
30 |
#import "CommodityFunctions.h" |
|
31 |
#import "UIImageExtra.h" |
|
3926
668b71f31e51
use dynamic data from engine instead of using hardcoded values
koda
parents:
3924
diff
changeset
|
32 |
#import "PascalImports.h" |
3547 | 33 |
|
3660 | 34 |
#define TEAMNAME_TAG 78789 |
3547 | 35 |
|
36 |
@implementation SingleTeamViewController |
|
3816 | 37 |
@synthesize teamDictionary, normalHogSprite, secondaryItems, moreSecondaryItems, teamName; |
3547 | 38 |
|
39 |
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
|
40 |
return rotationManager(interfaceOrientation); |
|
41 |
} |
|
42 |
||
43 |
#pragma mark - |
|
3660 | 44 |
#pragma mark editableCellViewDelegate methods |
3547 | 45 |
// set the new value |
3660 | 46 |
-(void) saveTextFieldValue:(NSString *)textString withTag:(NSInteger) tagValue { |
47 |
if (TEAMNAME_TAG == tagValue) { |
|
48 |
// delete old file |
|
49 |
[[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),self.teamName] error:NULL]; |
|
50 |
// update filename |
|
51 |
self.teamName = textString; |
|
52 |
// save new file |
|
53 |
[self writeFile]; |
|
54 |
} else { |
|
55 |
// replace the old value with the new one |
|
56 |
NSMutableDictionary *hog = [[teamDictionary objectForKey:@"hedgehogs"] objectAtIndex:tagValue]; |
|
57 |
[hog setObject:textString forKey:@"hogname"]; |
|
3547 | 58 |
isWriteNeeded = YES; |
59 |
} |
|
60 |
} |
|
61 |
||
62 |
#pragma mark - |
|
63 |
#pragma mark View lifecycle |
|
64 |
-(void) viewDidLoad { |
|
65 |
[super viewDidLoad]; |
|
3697 | 66 |
|
3547 | 67 |
// labels for the entries |
68 |
NSArray *array = [[NSArray alloc] initWithObjects: |
|
69 |
NSLocalizedString(@"Grave",@""), |
|
70 |
NSLocalizedString(@"Voice",@""), |
|
71 |
NSLocalizedString(@"Fort",@""), |
|
72 |
NSLocalizedString(@"Flag",@""), |
|
73 |
NSLocalizedString(@"Level",@""),nil]; |
|
74 |
self.secondaryItems = array; |
|
75 |
[array release]; |
|
3816 | 76 |
|
77 |
// labels for the subtitles |
|
78 |
NSArray *moreArray = [[NSArray alloc] initWithObjects: |
|
79 |
NSLocalizedString(@"Mark the death of your fallen warriors",@""), |
|
80 |
NSLocalizedString(@"Pick a slang your hogs will speak",@""), |
|
81 |
NSLocalizedString(@"Select the team invincible fortress (only valid for fort games)",@""), |
|
82 |
NSLocalizedString(@"Choose a charismatic symbol for your team",@""), |
|
83 |
NSLocalizedString(@"Opt for controlling the team or let the AI lead",@""),nil]; |
|
84 |
self.moreSecondaryItems = moreArray; |
|
85 |
[moreArray release]; |
|
3547 | 86 |
|
87 |
// load the base hog image, drawing will occure in cellForRow... |
|
88 |
NSString *normalHogFile = [[NSString alloc] initWithFormat:@"%@/Hedgehog.png",GRAPHICS_DIRECTORY()]; |
|
89 |
UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:normalHogFile andCutAt:CGRectMake(96, 0, 32, 32)]; |
|
90 |
[normalHogFile release]; |
|
91 |
self.normalHogSprite = hogSprite; |
|
92 |
[hogSprite release]; |
|
3697 | 93 |
|
3547 | 94 |
// listen if any childController modifies the plist and write it if needed |
95 |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setWriteNeeded) name:@"setWriteNeedTeams" object:nil]; |
|
96 |
isWriteNeeded = NO; |
|
3697 | 97 |
|
3660 | 98 |
self.title = NSLocalizedString(@"Edit team settings",@""); |
3547 | 99 |
} |
100 |
||
101 |
-(void) viewWillAppear:(BOOL)animated { |
|
102 |
[super viewWillAppear:animated]; |
|
3697 | 103 |
|
3660 | 104 |
// load data about the team and write if there has been a change from other childControllers |
3697 | 105 |
if (isWriteNeeded) |
3547 | 106 |
[self writeFile]; |
3697 | 107 |
|
3660 | 108 |
NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),self.teamName]; |
3547 | 109 |
NSMutableDictionary *teamDict = [[NSMutableDictionary alloc] initWithContentsOfFile:teamFile]; |
110 |
self.teamDictionary = teamDict; |
|
111 |
[teamDict release]; |
|
112 |
[teamFile release]; |
|
3697 | 113 |
|
3547 | 114 |
[self.tableView reloadData]; |
115 |
} |
|
116 |
||
117 |
// write on file if there has been a change |
|
118 |
-(void) viewWillDisappear:(BOOL)animated { |
|
119 |
[super viewWillDisappear:animated]; |
|
120 |
||
3697 | 121 |
if (isWriteNeeded) |
3660 | 122 |
[self writeFile]; |
3547 | 123 |
} |
124 |
||
125 |
#pragma mark - |
|
126 |
// needed by other classes to warn about a user change |
|
127 |
-(void) setWriteNeeded { |
|
128 |
isWriteNeeded = YES; |
|
129 |
} |
|
130 |
||
131 |
-(void) writeFile { |
|
3660 | 132 |
NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@.plist",TEAMS_DIRECTORY(),self.teamName]; |
133 |
[self.teamDictionary writeToFile:teamFile atomically:YES]; |
|
134 |
[teamFile release]; |
|
3547 | 135 |
|
3789
c3eb56754e92
added a smaller version of forts, fixed a couple of regressions
koda
parents:
3783
diff
changeset
|
136 |
//DLog(@"%@",teamDictionary); |
3547 | 137 |
isWriteNeeded = NO; |
138 |
} |
|
139 |
||
140 |
#pragma mark - |
|
141 |
#pragma mark Table view data source |
|
142 |
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
|
143 |
return 3; |
|
144 |
} |
|
145 |
||
146 |
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { |
|
147 |
NSInteger rows = 0; |
|
148 |
switch (section) { |
|
149 |
case 0: // team name |
|
150 |
rows = 1; |
|
151 |
break; |
|
152 |
case 1: // team members |
|
3926
668b71f31e51
use dynamic data from engine instead of using hardcoded values
koda
parents:
3924
diff
changeset
|
153 |
rows = HW_getMaxNumberOfHogs(); |
3547 | 154 |
break; |
155 |
case 2: // team details |
|
156 |
rows = [self.secondaryItems count]; |
|
157 |
break; |
|
158 |
default: |
|
159 |
break; |
|
160 |
} |
|
161 |
return rows; |
|
162 |
} |
|
163 |
||
3660 | 164 |
-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { |
165 |
NSString *sectionTitle = nil; |
|
166 |
switch (section) { |
|
167 |
case 0: |
|
168 |
sectionTitle = NSLocalizedString(@"Team Name", @""); |
|
169 |
break; |
|
170 |
case 1: |
|
171 |
sectionTitle = NSLocalizedString(@"Names and Hats", @""); |
|
172 |
break; |
|
173 |
case 2: |
|
174 |
sectionTitle = NSLocalizedString(@"Team Preferences", @""); |
|
175 |
break; |
|
176 |
default: |
|
177 |
DLog(@"Nope"); |
|
178 |
break; |
|
179 |
} |
|
180 |
return sectionTitle; |
|
181 |
} |
|
182 |
||
3547 | 183 |
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { |
184 |
static NSString *CellIdentifier0 = @"Cell0"; |
|
185 |
static NSString *CellIdentifier1 = @"Cell1"; |
|
186 |
static NSString *CellIdentifier2 = @"Cell2"; |
|
3697 | 187 |
|
3547 | 188 |
NSArray *hogArray; |
189 |
UITableViewCell *cell = nil; |
|
3660 | 190 |
EditableCellView *editableCell = nil; |
3547 | 191 |
NSInteger row = [indexPath row]; |
192 |
UIImage *accessoryImage; |
|
3697 | 193 |
|
3547 | 194 |
switch ([indexPath section]) { |
195 |
case 0: |
|
3660 | 196 |
editableCell = (EditableCellView *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier0]; |
197 |
if (editableCell == nil) { |
|
3697 | 198 |
editableCell = [[[EditableCellView alloc] initWithStyle:UITableViewCellStyleDefault |
3547 | 199 |
reuseIdentifier:CellIdentifier0] autorelease]; |
3660 | 200 |
editableCell.delegate = self; |
201 |
editableCell.tag = TEAMNAME_TAG; |
|
3547 | 202 |
} |
3697 | 203 |
|
3660 | 204 |
editableCell.imageView.image = nil; |
205 |
editableCell.accessoryType = UITableViewCellAccessoryNone; |
|
206 |
editableCell.textField.text = self.teamName; |
|
207 |
||
208 |
cell = editableCell; |
|
3547 | 209 |
break; |
210 |
case 1: |
|
3660 | 211 |
editableCell = (EditableCellView *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier1]; |
212 |
if (editableCell == nil) { |
|
3697 | 213 |
editableCell = [[[EditableCellView alloc] initWithStyle:UITableViewCellStyleDefault |
3547 | 214 |
reuseIdentifier:CellIdentifier1] autorelease]; |
3660 | 215 |
editableCell.delegate = self; |
216 |
editableCell.tag = [indexPath row]; |
|
3547 | 217 |
} |
3697 | 218 |
|
3547 | 219 |
hogArray = [self.teamDictionary objectForKey:@"hedgehogs"]; |
3697 | 220 |
|
3660 | 221 |
// draw the hat on top of the hog |
3547 | 222 |
NSString *hatFile = [[NSString alloc] initWithFormat:@"%@/%@.png", HATS_DIRECTORY(), [[hogArray objectAtIndex:row] objectForKey:@"hat"]]; |
223 |
UIImage *hatSprite = [[UIImage alloc] initWithContentsOfFile: hatFile andCutAt:CGRectMake(0, 0, 32, 32)]; |
|
224 |
[hatFile release]; |
|
3948
24daa33a3114
some rethinking of initial menu presentation and initial orientation (also merging images should be threadsafe now)
koda
parents:
3926
diff
changeset
|
225 |
editableCell.imageView.image = [self.normalHogSprite mergeWith:hatSprite atPoint:CGPointMake(0, 5)]; |
3547 | 226 |
[hatSprite release]; |
3697 | 227 |
|
3660 | 228 |
editableCell.textField.text = [[hogArray objectAtIndex:row] objectForKey:@"hogname"]; |
229 |
editableCell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; |
|
3697 | 230 |
|
3660 | 231 |
cell = editableCell; |
3547 | 232 |
break; |
233 |
case 2: |
|
234 |
cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier2]; |
|
235 |
if (cell == nil) { |
|
3816 | 236 |
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle |
3547 | 237 |
reuseIdentifier:CellIdentifier2] autorelease]; |
238 |
} |
|
3697 | 239 |
|
3547 | 240 |
cell.textLabel.text = [self.secondaryItems objectAtIndex:row]; |
3816 | 241 |
cell.detailTextLabel.text = [self.moreSecondaryItems objectAtIndex:row]; |
3547 | 242 |
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; |
243 |
switch (row) { |
|
244 |
case 0: // grave |
|
245 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.png", |
|
246 |
GRAVES_DIRECTORY(),[teamDictionary objectForKey:@"grave"]] |
|
247 |
andCutAt:CGRectMake(0,0,32,32)]; |
|
248 |
cell.imageView.image = accessoryImage; |
|
249 |
[accessoryImage release]; |
|
250 |
break; |
|
3816 | 251 |
case 1: // voice |
252 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/HellishBomb.png", |
|
253 |
GRAPHICS_DIRECTORY()]]; |
|
254 |
cell.imageView.image = accessoryImage; |
|
255 |
[accessoryImage release]; |
|
256 |
break; |
|
3547 | 257 |
case 2: // fort |
3789
c3eb56754e92
added a smaller version of forts, fixed a couple of regressions
koda
parents:
3783
diff
changeset
|
258 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@-preview.png", |
3547 | 259 |
FORTS_DIRECTORY(),[teamDictionary objectForKey:@"fort"]]]; |
3816 | 260 |
cell.imageView.image = [accessoryImage scaleToSize:CGSizeMake(32, 32)]; |
3547 | 261 |
[accessoryImage release]; |
262 |
break; |
|
263 |
case 3: // flags |
|
264 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.png", |
|
265 |
FLAGS_DIRECTORY(),[teamDictionary objectForKey:@"flag"]]]; |
|
3825 | 266 |
cell.imageView.image = [accessoryImage scaleToSize:CGSizeMake(27, 19)]; |
4478 | 267 |
cell.imageView.layer.borderWidth = 0.3; |
3547 | 268 |
[accessoryImage release]; |
269 |
break; |
|
270 |
case 4: // level |
|
271 |
accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%d.png", |
|
272 |
BOTLEVELS_DIRECTORY(),[[[[teamDictionary objectForKey:@"hedgehogs"] |
|
273 |
objectAtIndex:0] objectForKey:@"level"] |
|
274 |
intValue]]]; |
|
3816 | 275 |
cell.imageView.image = [accessoryImage scaleToSize:CGSizeMake(32, 32)]; |
3547 | 276 |
[accessoryImage release]; |
277 |
break; |
|
278 |
default: |
|
279 |
cell.imageView.image = nil; |
|
280 |
break; |
|
281 |
} |
|
282 |
break; |
|
283 |
} |
|
3697 | 284 |
|
3547 | 285 |
return cell; |
286 |
} |
|
287 |
||
288 |
||
289 |
#pragma mark - |
|
290 |
#pragma mark Table view delegate |
|
291 |
-(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
|
292 |
NSInteger row = [indexPath row]; |
|
293 |
NSInteger section = [indexPath section]; |
|
3697 | 294 |
|
3547 | 295 |
if (2 == section) { |
296 |
switch (row) { |
|
297 |
case 0: // grave |
|
298 |
if (nil == gravesViewController) |
|
299 |
gravesViewController = [[GravesViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 300 |
|
301 |
[gravesViewController setTeamDictionary:teamDictionary]; |
|
302 |
[self.navigationController pushViewController:gravesViewController animated:YES]; |
|
3547 | 303 |
break; |
304 |
case 1: // voice |
|
305 |
if (nil == voicesViewController) |
|
306 |
voicesViewController = [[VoicesViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 307 |
|
308 |
[voicesViewController setTeamDictionary:teamDictionary]; |
|
309 |
[self.navigationController pushViewController:voicesViewController animated:YES]; |
|
3547 | 310 |
break; |
311 |
case 2: // fort |
|
312 |
if (nil == fortsViewController) |
|
313 |
fortsViewController = [[FortsViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 314 |
|
315 |
[fortsViewController setTeamDictionary:teamDictionary]; |
|
316 |
[self.navigationController pushViewController:fortsViewController animated:YES]; |
|
3547 | 317 |
break; |
318 |
case 3: // flag |
|
3697 | 319 |
if (nil == flagsViewController) |
3547 | 320 |
flagsViewController = [[FlagsViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
3924 | 321 |
|
322 |
[flagsViewController setTeamDictionary:teamDictionary]; |
|
323 |
[self.navigationController pushViewController:flagsViewController animated:YES]; |
|
3547 | 324 |
break; |
325 |
case 4: // level |
|
326 |
if (nil == levelViewController) |
|
327 |
levelViewController = [[LevelViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
|
3924 | 328 |
|
329 |
[levelViewController setTeamDictionary:teamDictionary]; |
|
330 |
[self.navigationController pushViewController:levelViewController animated:YES]; |
|
331 |
break; |
|
332 |
default: |
|
333 |
DLog(@"Nope"); |
|
3547 | 334 |
break; |
335 |
} |
|
336 |
} else { |
|
3660 | 337 |
EditableCellView *cell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |
338 |
[cell replyKeyboard]; |
|
3547 | 339 |
[aTableView deselectRowAtIndexPath:indexPath animated:NO]; |
340 |
} |
|
341 |
||
342 |
} |
|
343 |
||
344 |
// action to perform when you want to change a hog hat |
|
3660 | 345 |
-(void) tableView:(UITableView *)aTableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
346 |
if (nil == hogHatViewController) |
3547 | 347 |
hogHatViewController = [[HogHatViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
3697 | 348 |
|
3547 | 349 |
// cache the dictionary file of the team, so that other controllers can modify it |
350 |
hogHatViewController.teamDictionary = self.teamDictionary; |
|
351 |
hogHatViewController.selectedHog = [indexPath row]; |
|
3697 | 352 |
|
3660 | 353 |
// if we are editing the field undo any change before proceeding |
354 |
EditableCellView *cell = (EditableCellView *)[aTableView cellForRowAtIndexPath:indexPath]; |
|
355 |
[cell cancel:nil]; |
|
3697 | 356 |
|
3547 | 357 |
[self.navigationController pushViewController:hogHatViewController animated:YES]; |
358 |
} |
|
359 |
||
360 |
||
361 |
#pragma mark - |
|
362 |
#pragma mark Memory management |
|
363 |
-(void) didReceiveMemoryWarning { |
|
364 |
[super didReceiveMemoryWarning]; |
|
365 |
if (hogHatViewController.view.superview == nil) |
|
366 |
hogHatViewController = nil; |
|
367 |
if (gravesViewController.view.superview == nil) |
|
368 |
gravesViewController = nil; |
|
369 |
if (voicesViewController.view.superview == nil) |
|
370 |
voicesViewController = nil; |
|
371 |
if (fortsViewController.view.superview == nil) |
|
372 |
fortsViewController = nil; |
|
373 |
if (flagsViewController.view.superview == nil) |
|
374 |
flagsViewController = nil; |
|
375 |
if (levelViewController.view.superview == nil) |
|
376 |
levelViewController = nil; |
|
3660 | 377 |
MSG_MEMCLEAN(); |
3547 | 378 |
} |
379 |
||
380 |
-(void) viewDidUnload { |
|
3783 | 381 |
[[NSNotificationCenter defaultCenter] removeObserver:self]; |
3547 | 382 |
self.teamDictionary = nil; |
383 |
self.teamName = nil; |
|
384 |
self.normalHogSprite = nil; |
|
385 |
self.secondaryItems = nil; |
|
3816 | 386 |
self.moreSecondaryItems = nil; |
3547 | 387 |
hogHatViewController = nil; |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
388 |
gravesViewController = nil; |
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
389 |
voicesViewController = nil; |
3547 | 390 |
flagsViewController = nil; |
391 |
fortsViewController = nil; |
|
392 |
levelViewController = nil; |
|
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
393 |
MSG_DIDUNLOAD(); |
3547 | 394 |
[super viewDidUnload]; |
395 |
} |
|
396 |
||
397 |
-(void) dealloc { |
|
398 |
[teamDictionary release]; |
|
399 |
[teamName release]; |
|
400 |
[normalHogSprite release]; |
|
401 |
[secondaryItems release]; |
|
3816 | 402 |
[moreSecondaryItems release]; |
3547 | 403 |
[hogHatViewController release]; |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
404 |
[gravesViewController release]; |
3547 | 405 |
[fortsViewController release]; |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
406 |
[voicesViewController release]; |
3547 | 407 |
[flagsViewController release]; |
408 |
[levelViewController release]; |
|
409 |
[super dealloc]; |
|
410 |
} |
|
411 |
||
412 |
||
413 |
@end |
|
414 |