cocoaTouch/DetailViewController.m
author koda
Thu, 29 Apr 2010 02:43:28 +0000
changeset 3373 c1ff724a5c34
parent 3364 e5403e2bf02c
child 3374 0d522416d97f
permissions -rw-r--r--
use a proper bundle identifier fix land preview add theme selection and map preview
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     1
    //
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     2
//  DetailViewController.m
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     3
//  HedgewarsMobile
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     4
//
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     5
//  Created by Vittorio on 27/03/10.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     7
//
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     8
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
     9
#import "DetailViewController.h"
3312
6d8f1c76756d restore and update the old general settings
koda
parents: 3308
diff changeset
    10
#import "SDL_uikitappdelegate.h"
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    11
#import "GeneralSettingsViewController.h"
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    12
#import "TeamSettingsViewController.h"
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    13
#import "WeaponSettingsViewController.h"
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    14
#import "SchemeSettingsViewController.h"
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    15
#import "CommodityFunctions.h"
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    16
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    17
@implementation DetailViewController
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    18
@synthesize popoverController, controllerNames;
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    19
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    20
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    21
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    22
	return rotationManager(interfaceOrientation);
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    23
}
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
    24
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    25
-(void) viewDidLoad {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    26
    self.title = NSLocalizedString(@"Settings",@"");
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    27
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    28
    // allocate controllers and store them into the array
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    29
    NSArray *array= [[NSArray alloc] initWithObjects:NSLocalizedString(@"General",@""), 
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    30
                                                     NSLocalizedString(@"Teams",@""),
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    31
                                                     NSLocalizedString(@"Weapons",@""),
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    32
                                                     NSLocalizedString(@"Schemes",@""),
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    33
                                                     nil];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    34
    self.controllerNames = array;
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    35
    [array release];
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    36
    
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    37
    // on ipad make the general setting the first view, on iphone add the "Done" button on top left
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    38
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    39
        
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    40
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(112, 112, 480, 320)];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    41
        label.text = @"Press the buttons on the left";
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    42
        label.font = [UIFont systemFontOfSize:20];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    43
        label.textAlignment = UITextAlignmentCenter;
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    44
        [self.view addSubview:label];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    45
        [label release];
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    46
        
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    47
        
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    48
        //[self.navigationController pushViewController:nextController animated:NO];
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    49
    } else {
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    50
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    51
                                                                                              target:self
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    52
                                                                                              action:@selector(dismissSplitView)];
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    53
    }
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
    54
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    55
    [super viewDidLoad];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    56
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    57
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    58
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    59
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    60
#pragma mark Table view data source
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    61
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    62
    // don't display 
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    63
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    64
        return 0;
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    65
    else
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    66
        return 1;
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    67
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    68
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    69
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    70
    return [controllerNames count];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    71
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    72
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    73
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    74
    static NSString *CellIdentifier = @"Cell";
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    75
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    76
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    77
    if (cell == nil) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    78
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    79
                                       reuseIdentifier:CellIdentifier] autorelease];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    80
    }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    81
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    82
    NSInteger row = [indexPath row];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    83
    
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    84
    cell.textLabel.text = [controllerNames objectAtIndex:row];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    85
    cell.imageView.image = [UIImage imageNamed:@"Icon.png"];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    86
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    87
    
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    88
    return cell;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    89
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    90
3357
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    91
#pragma mark -
3836a31879e7 draw a hedgehog when presenting hats
koda
parents: 3356
diff changeset
    92
#pragma mark Table view delegate
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    93
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
    94
    NSInteger row = [indexPath row];
3364
e5403e2bf02c no more hardcoded teams, team selection is real \o/
koda
parents: 3357
diff changeset
    95
    UIViewController *nextController = nil;
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    96
    
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    97
    switch (row) {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    98
        case 0:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
    99
            if (nil == generalSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   100
                generalSettingsViewController = [[GeneralSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   101
            nextController = generalSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   102
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   103
        case 1:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   104
            if (nil == teamSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   105
                teamSettingsViewController = [[TeamSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   106
            nextController = teamSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   107
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   108
        case 2:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   109
            if (nil == weaponSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   110
                weaponSettingsViewController = [[WeaponSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   111
            nextController = weaponSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   112
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   113
        case 3:
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   114
            if (nil == schemeSettingsViewController)
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   115
                schemeSettingsViewController = [[SchemeSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   116
            nextController = schemeSettingsViewController;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   117
            break;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   118
    }
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   119
    
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   120
    nextController.title = [controllerNames objectAtIndex:row];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   121
    [self.navigationController pushViewController:nextController animated:YES];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   122
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   123
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   124
/*
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   125
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   126
#pragma mark Managing the popover controller
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   127
// When setting the detail item, update the view and dismiss the popover controller if it's showing.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   128
-(void) setDetailItem:(id) newDetailItem {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   129
    if (detailItem != newDetailItem) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   130
        [detailItem release];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   131
        detailItem = [newDetailItem retain];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   132
        
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   133
        // Update the view.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   134
       // navigationBar.topItem.title = (NSString*) detailItem;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   135
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   136
		//test.text=(NSString*) detailItem;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   137
    }
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   138
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   139
  //  if (popoverController != nil) {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   140
  //      [popoverController dismissPopoverAnimated:YES];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   141
  //  }        
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   142
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   143
*/
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   144
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   145
#pragma mark -
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   146
#pragma mark Split view support
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   147
#ifdef __IPHONE_3_2
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
   148
-(void) splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *)aViewController withBarButtonItem:(UIBarButtonItem *)barButtonItem forPopoverController:(UIPopoverController *)pc {
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   149
    barButtonItem.title = @"Master List";
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
   150
    [self.navigationController.navigationBar.topItem setLeftBarButtonItem:barButtonItem animated:YES];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   151
    self.popoverController = pc;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   152
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   153
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   154
// Called when the view is shown again in the split view, invalidating the button and popover controller.
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   155
-(void) splitViewController: (UISplitViewController*)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem {
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3316
diff changeset
   156
    [self.navigationController.navigationBar.topItem setLeftBarButtonItem:nil animated:YES];
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   157
    self.popoverController = nil;
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   158
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   159
#endif
3316
52f0482b043f fix a couple of leaks in hte ifrontend
koda
parents: 3312
diff changeset
   160
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   161
-(IBAction) dismissSplitView {
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   162
    [[NSNotificationCenter defaultCenter] postNotificationName:@"dismissModalView" object:nil];
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   163
}
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   164
3356
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   165
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   166
-(void) didReceiveMemoryWarning {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   167
    // Releases the view if it doesn't have a superview.
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   168
    [super didReceiveMemoryWarning];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   169
    // Release any cached data, images, etc that aren't in use.
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   170
}
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   171
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   172
-(void) viewDidUnload {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   173
    self.controllerNames = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   174
    self.popoverController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   175
    generalSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   176
    teamSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   177
    weaponSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   178
    schemeSettingsViewController = nil;
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   179
    [super viewDidUnload];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   180
}
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   181
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   182
-(void) dealloc {
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   183
    [controllerNames release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   184
    [popoverController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   185
    [generalSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   186
    [teamSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   187
    [weaponSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   188
    [schemeSettingsViewController release];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   189
    [super dealloc];
3ae3fccb439e add missing controller stubs
koda
parents: 3335
diff changeset
   190
}
3305
91074496d5c9 merged code from ipad and iphone frontends
koda
parents:
diff changeset
   191
@end