project_files/HedgewarsMobile/Classes/SingleTeamViewController.m
branchios-revival
changeset 11254 407045ffe343
parent 11217 e68b3e392091
child 11273 68a0df07382b
equal deleted inserted replaced
11253:62d1a66b353d 11254:407045ffe343
   223             editableCell = (EditableCellView *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier1];
   223             editableCell = (EditableCellView *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier1];
   224             if (editableCell == nil) {
   224             if (editableCell == nil) {
   225                 editableCell = [[[EditableCellView alloc] initWithStyle:UITableViewCellStyleDefault
   225                 editableCell = [[[EditableCellView alloc] initWithStyle:UITableViewCellStyleDefault
   226                                                reuseIdentifier:CellIdentifier1] autorelease];
   226                                                reuseIdentifier:CellIdentifier1] autorelease];
   227                 editableCell.delegate = self;
   227                 editableCell.delegate = self;
   228                 editableCell.tag = [indexPath row];
   228             }
   229             }
   229             editableCell.tag = [indexPath row];
   230 
   230 
   231             hogArray = [self.teamDictionary objectForKey:@"hedgehogs"];
   231             hogArray = [self.teamDictionary objectForKey:@"hedgehogs"];
   232 
   232 
   233             // draw the hat on top of the hog
   233             // draw the hat on top of the hog
   234             NSString *hatFile = [[NSString alloc] initWithFormat:@"%@/%@.png", HATS_DIRECTORY(), [[hogArray objectAtIndex:row] objectForKey:@"hat"]];
   234             NSString *hatFile = [[NSString alloc] initWithFormat:@"%@/%@.png", HATS_DIRECTORY(), [[hogArray objectAtIndex:row] objectForKey:@"hat"]];