project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6634 e00762923086
parent 6247 6dfad55fd71c
child 6636 4450e746dc34
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Feb 05 22:22:46 2012 -0500
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Tue Feb 07 00:34:25 2012 +0100
@@ -124,6 +124,7 @@
     aTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
     aTableView.separatorColor = [UIColor whiteColor];
     aTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
+    aTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
     self.tableView = aTableView;
     [aTableView release];
     [self.view addSubview:self.tableView];
@@ -320,6 +321,9 @@
         theLabel.center = CGPointMake(controllerInstance.view.frame.size.width/2, controllerInstance.view.frame.size.height/2);
         theLabel.numberOfLines = 2;
         theLabel.tag = LABEL_TAG;
+        theLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth |
+                                    UIViewAutoresizingFlexibleTopMargin |
+                                    UIViewAutoresizingFlexibleBottomMargin;
 
         [controllerInstance.view addSubview:theLabel];
         [theLabel release];