project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
changeset 3659 f8d5ac50e307
parent 3625 9f1d79e01a60
child 3662 a44406f4369b
equal deleted inserted replaced
3658:113cb9345be1 3659:f8d5ac50e307
   123         
   123         
   124         SquareButtonView *squareButton = (SquareButtonView *)[cell viewWithTag:SQUAREBUTTON_TAG];
   124         SquareButtonView *squareButton = (SquareButtonView *)[cell viewWithTag:SQUAREBUTTON_TAG];
   125         [squareButton selectColor:[[selectedRow objectForKey:@"color"] intValue]];
   125         [squareButton selectColor:[[selectedRow objectForKey:@"color"] intValue]];
   126         squareButton.ownerDictionary = selectedRow;
   126         squareButton.ownerDictionary = selectedRow;
   127         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   127         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   128             cellLabel.textColor = [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xCB/255 blue:0 alpha:1 ];
   128             cellLabel.textColor = [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xCB/255 blue:0 alpha:1];
   129         }
   129         }
   130     } else {
   130     } else {
   131         cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier1];
   131         cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier1];
   132         if (cell == nil) 
   132         if (cell == nil) 
   133             cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier1] autorelease];
   133             cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier1] autorelease];