project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6634 e00762923086
parent 6247 6dfad55fd71c
child 6636 4450e746dc34
equal deleted inserted replaced
6633:2dc43ce68721 6634:e00762923086
   122     }
   122     }
   123 
   123 
   124     aTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
   124     aTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
   125     aTableView.separatorColor = [UIColor whiteColor];
   125     aTableView.separatorColor = [UIColor whiteColor];
   126     aTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
   126     aTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
       
   127     aTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
   127     self.tableView = aTableView;
   128     self.tableView = aTableView;
   128     [aTableView release];
   129     [aTableView release];
   129     [self.view addSubview:self.tableView];
   130     [self.view addSubview:self.tableView];
   130 
   131 
   131     [super viewDidLoad];
   132     [super viewDidLoad];
   318         UILabel *theLabel = [[UILabel alloc] initWithFrame:frame
   319         UILabel *theLabel = [[UILabel alloc] initWithFrame:frame
   319                                                   andTitle:NSLocalizedString(@"Missions don't need further configuration",@"")];
   320                                                   andTitle:NSLocalizedString(@"Missions don't need further configuration",@"")];
   320         theLabel.center = CGPointMake(controllerInstance.view.frame.size.width/2, controllerInstance.view.frame.size.height/2);
   321         theLabel.center = CGPointMake(controllerInstance.view.frame.size.width/2, controllerInstance.view.frame.size.height/2);
   321         theLabel.numberOfLines = 2;
   322         theLabel.numberOfLines = 2;
   322         theLabel.tag = LABEL_TAG;
   323         theLabel.tag = LABEL_TAG;
       
   324         theLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth |
       
   325                                     UIViewAutoresizingFlexibleTopMargin |
       
   326                                     UIViewAutoresizingFlexibleBottomMargin;
   323 
   327 
   324         [controllerInstance.view addSubview:theLabel];
   328         [controllerInstance.view addSubview:theLabel];
   325         [theLabel release];
   329         [theLabel release];
   326     }
   330     }
   327 }
   331 }