project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
changeset 4284 57a501a69e5f
parent 4244 bf46b4bdf27d
child 4356 d1d26f8963a3
equal deleted inserted replaced
4281:e033cf015b2c 4284:57a501a69e5f
   123             SquareButtonView *squareButton = [[SquareButtonView alloc] initWithFrame:CGRectMake(12+88+6, 5, 36, 36)];
   123             SquareButtonView *squareButton = [[SquareButtonView alloc] initWithFrame:CGRectMake(12+88+6, 5, 36, 36)];
   124             squareButton.tag = SQUAREBUTTON_TAG;
   124             squareButton.tag = SQUAREBUTTON_TAG;
   125             [cell addSubview:squareButton];
   125             [cell addSubview:squareButton];
   126             [squareButton release];
   126             [squareButton release];
   127 
   127 
   128             UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(12+88+6+36, 10, 103, 25)];
   128             NSInteger length;
       
   129             if (IS_IPAD())
       
   130                 length = 103;
       
   131             else
       
   132                 length = 285;
       
   133             UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(12+88+6+36, 10, length, 25)];
   129             label.textAlignment = UITextAlignmentLeft;
   134             label.textAlignment = UITextAlignmentLeft;
   130             label.minimumFontSize = 11;
   135             label.minimumFontSize = 11;
   131             label.adjustsFontSizeToFitWidth = YES;
   136             label.adjustsFontSizeToFitWidth = YES;
   132             label.baselineAdjustment = UIBaselineAdjustmentAlignCenters;
   137             label.baselineAdjustment = UIBaselineAdjustmentAlignCenters;
   133             label.backgroundColor = [UIColor clearColor];
   138             label.backgroundColor = [UIColor clearColor];