cocoaTouch/iPad/SingleTeamViewController.m
author koda
Fri, 02 Apr 2010 22:44:14 +0000
changeset 3270 9bd8fb1707b9
parent 3253 b0b1b1310b7e
child 3276 039145459ac8
permissions -rw-r--r--
initial support for hat selection on the ifrontend
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     1
//
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     2
//  SingleTeamViewController.m
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     3
//  HedgewarsMobile
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     4
//
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     5
//  Created by Vittorio on 02/04/10.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     7
//
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     8
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
     9
#import "SingleTeamViewController.h"
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    10
#import "HogHatViewController.h"
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    11
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    12
@implementation SingleTeamViewController
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    13
@synthesize hogsList, secondaryItems, teamName;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    14
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    15
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    16
#pragma mark -
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    17
#pragma mark View lifecycle
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    18
- (void)viewDidLoad {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    19
    [super viewDidLoad];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    20
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    21
    // Uncomment the following line to preserve selection between presentations.
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    22
    //self.clearsSelectionOnViewWillAppear = NO;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    23
 
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    24
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    25
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    26
   
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    27
    NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    28
                             NSLocalizedString(@"Color",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    29
                             NSLocalizedString(@"Grave",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    30
                             NSLocalizedString(@"Voice",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    31
                             NSLocalizedString(@"Fort",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    32
                             NSLocalizedString(@"Flag",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    33
                             NSLocalizedString(@"Level",@""),nil];
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    34
    self.secondaryItems = array;
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    35
    [array release];
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    36
}
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    37
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    38
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    39
- (void)viewWillAppear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    40
    [super viewWillAppear:animated];
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    41
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    42
    NSString *teamFile = [[NSString alloc] initWithFormat:@"%@Teams/%@.plist",[paths objectAtIndex:0],self.teamName];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    43
    NSDictionary *teamDict = [[NSDictionary alloc] initWithContentsOfFile:teamFile];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    44
    [teamFile release];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    45
    
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    46
    self.hogsList = [teamDict objectForKey:@"hedgehogs"];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    47
    self.teamName = [teamDict objectForKey:@"teamname"];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    48
    [teamDict release];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    49
    self.title = teamName;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    50
}
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
    51
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    52
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    53
- (void)viewDidAppear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    54
    [super viewDidAppear:animated];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    55
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    56
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    57
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    58
- (void)viewWillDisappear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    59
    [super viewWillDisappear:animated];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    60
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    61
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    62
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    63
- (void)viewDidDisappear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    64
    [super viewDidDisappear:animated];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    65
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    66
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    67
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    68
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    69
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    70
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    71
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    72
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    73
#pragma mark -
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    74
#pragma mark Table view data source
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    75
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    76
    return 3;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    77
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    78
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    79
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    80
    NSInteger rows;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    81
    switch (section) {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    82
        case 0:
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    83
            rows = 1;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    84
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    85
        case 1:
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    86
            rows = 8;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    87
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    88
        case 2:
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    89
            rows = 6;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    90
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    91
        default:
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    92
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    93
    }
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    94
    return rows;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    95
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    96
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    97
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    98
    static NSString *CellIdentifier = @"Cell";
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    99
    
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   100
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   101
    if (cell == nil) {
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   102
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   103
                                       reuseIdentifier:CellIdentifier] autorelease];
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   104
    }
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   105
    
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   106
    NSInteger row = [indexPath row];
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   107
    switch ([indexPath section]) {
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   108
        case 0:
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   109
            cell.textLabel.text = teamName;
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   110
            break;
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   111
        case 1:
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   112
            cell.textLabel.text = [[self.hogsList objectAtIndex:row] objectForKey:@"hogname"];
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   113
            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   114
            break;
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   115
        case 2:
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   116
            cell.textLabel.text = [self.secondaryItems objectAtIndex:row];
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   117
            break;
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   118
        default:
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   119
            break;
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   120
    }
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   121
    
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   122
    return cell;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   123
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   124
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   125
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   126
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   127
// Override to support conditional editing of the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   128
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   129
    // Return NO if you do not want the specified item to be editable.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   130
    return YES;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   131
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   132
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   133
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   134
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   135
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   136
// Override to support editing the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   137
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   138
    
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   139
    if (editingStyle == UITableViewCellEditingStyleDelete) {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   140
        // Delete the row from the data source
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   141
        [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   142
    }   
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   143
    else if (editingStyle == UITableViewCellEditingStyleInsert) {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   144
        // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   145
    }   
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   146
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   147
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   148
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   149
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   150
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   151
// Override to support rearranging the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   152
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   153
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   154
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   155
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   156
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   157
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   158
// Override to support conditional rearranging of the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   159
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   160
    // Return NO if you do not want the item to be re-orderable.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   161
    return YES;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   162
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   163
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   164
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   165
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   166
#pragma mark -
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   167
#pragma mark Table view delegate
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   168
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   169
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   170
    if (nil == hogChildController) {
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   171
        hogChildController = [[HogHatViewController alloc] initWithStyle:UITableViewStyleGrouped];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   172
    }
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   173
    
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   174
    hogChildController.hog = [hogsList objectAtIndex:[indexPath row]];
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   175
    //NSLog(@"%@",hogChildController.hog);
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   176
    [self.navigationController pushViewController:hogChildController animated:YES];
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   177
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   178
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   179
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   180
#pragma mark -
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   181
#pragma mark Memory management
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   182
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   183
-(void) didReceiveMemoryWarning {
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   184
    // Releases the view if it doesn't have a superview.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   185
    [super didReceiveMemoryWarning];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   186
    // Relinquish ownership any cached data, images, etc that aren't in use.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   187
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   188
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   189
-(void) viewDidUnload {
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   190
    self.hogsList = nil;
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   191
    self.secondaryItems = nil;
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   192
    self.teamName = nil;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   193
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   194
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   195
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   196
-(void) dealloc {
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   197
    [secondaryItems release];
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   198
    [hogsList release];
3270
9bd8fb1707b9 initial support for hat selection on the ifrontend
koda
parents: 3253
diff changeset
   199
    [teamName release];
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   200
    [super dealloc];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   201
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   202
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   203
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   204
@end
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   205