cocoaTouch/iPad/SingleTeamViewController.m
author koda
Fri, 02 Apr 2010 15:30:54 +0000
changeset 3253 b0b1b1310b7e
parent 3251 221c163ad5d9
child 3270 9bd8fb1707b9
permissions -rw-r--r--
display team contents in 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"
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    10
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
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    13
@synthesize hogsList, secondaryItems;
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
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    21
    
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    22
    // Uncomment the following line to preserve selection between presentations.
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    23
    //self.clearsSelectionOnViewWillAppear = NO;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    24
 
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    25
    // 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
    26
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    27
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    28
    NSString *teamFile = [[NSString alloc] initWithFormat:@"%@Teams/%@.plist",[paths objectAtIndex:0],self.title];
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    29
    NSDictionary *teamDict = [[NSDictionary alloc] initWithContentsOfFile: teamFile];
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    30
    [teamFile release];
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    31
    self.hogsList = [teamDict objectForKey:@"hedgehogs"];
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
    32
    [teamDict release];
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    33
    
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    34
    NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    35
                             NSLocalizedString(@"Color",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    36
                             NSLocalizedString(@"Grave",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    37
                             NSLocalizedString(@"Voice",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    38
                             NSLocalizedString(@"Fort",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    39
                             NSLocalizedString(@"Flag",@""),
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    40
                             NSLocalizedString(@"Level",@""),nil];
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    41
    self.secondaryItems = array;
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    42
    [array release];
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    43
}
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    44
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    45
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    46
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    47
- (void)viewWillAppear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    48
    [super viewWillAppear:animated];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    49
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    50
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    51
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    52
- (void)viewDidAppear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    53
    [super viewDidAppear:animated];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    54
}
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
- (void)viewWillDisappear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    58
    [super viewWillDisappear:animated];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    59
}
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
- (void)viewDidDisappear:(BOOL)animated {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    63
    [super viewDidDisappear:animated];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    64
}
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 {
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    69
    // Override to allow orientations other than the default portrait orientation.
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    70
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
3250
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
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    74
#pragma mark -
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    75
#pragma mark Table view data source
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    76
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    77
    // Return the number of sections.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    78
    return 3;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    79
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    80
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    81
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    82
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    83
    // Return the number of rows in the section.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    84
    NSInteger rows;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    85
    switch (section) {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    86
        case 0:
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    87
            rows = 1;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    88
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    89
        case 1:
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    90
            rows = 8;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    91
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    92
        case 2:
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
    93
            rows = 6;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    94
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    95
        default:
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    96
            break;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    97
    }
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
    98
    return rows;
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
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   101
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   102
// Customize the appearance of table view cells.
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   103
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
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
    static NSString *CellIdentifier = @"Cell";
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   106
    
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   107
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   108
    if (cell == nil) {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   109
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   110
    }
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   111
    
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   112
    NSInteger row = [indexPath row];
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   113
    switch ([indexPath section]) {
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   114
        case 0:
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   115
            cell.textLabel.text = self.title;
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   116
            break;
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   117
        case 1:
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   118
            cell.textLabel.text = [[self.hogsList objectAtIndex:row] objectForKey:@"hogname"];
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   119
            break;
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   120
        case 2:
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   121
            cell.textLabel.text = [self.secondaryItems objectAtIndex:row];
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   122
            break;
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   123
        default:
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   124
            break;
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   125
    }
3250
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
    return cell;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   128
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   129
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   130
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
// Override to support conditional editing of the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   133
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   134
    // 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
   135
    return YES;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   136
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   137
*/
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
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   140
/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   141
// Override to support editing the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   142
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   143
    
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   144
    if (editingStyle == UITableViewCellEditingStyleDelete) {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   145
        // Delete the row from the data source
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   146
        [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
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
    else if (editingStyle == UITableViewCellEditingStyleInsert) {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   149
        // 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
   150
    }   
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   151
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   152
*/
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
// Override to support rearranging the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   157
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   158
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   159
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   160
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   161
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
// Override to support conditional rearranging of the table view.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   164
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   165
    // 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
   166
    return YES;
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   167
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   168
*/
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   169
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   170
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   171
#pragma mark -
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   172
#pragma mark Table view delegate
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   173
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   174
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   175
    // Navigation logic may go here. Create and push another view controller.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   176
	/*
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   177
	 <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
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
     // Pass the selected object to the new view controller.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   180
	 [self.navigationController pushViewController:detailViewController animated:YES];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   181
	 [detailViewController release];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   182
	 */
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   183
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   184
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   185
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   186
#pragma mark -
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   187
#pragma mark Memory management
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) didReceiveMemoryWarning {
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   190
    // Releases the view if it doesn't have a superview.
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   191
    [super didReceiveMemoryWarning];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   192
    
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   193
    // 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
   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) viewDidUnload {
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   197
    self.hogsList = nil;
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   198
    self.secondaryItems = nil;
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   199
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   200
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   201
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   202
-(void) dealloc {
3253
b0b1b1310b7e display team contents in the ifrontend
koda
parents: 3251
diff changeset
   203
    [hogsList release];
3251
221c163ad5d9 continue working for team support on the ifrontend
koda
parents: 3250
diff changeset
   204
    [secondaryItems release];
3250
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   205
    [super dealloc];
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   206
}
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   207
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   208
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   209
@end
d5cd1a617123 intial support for team configuration on the ifrontend
koda
parents:
diff changeset
   210