project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
branchios-revival
changeset 11146 f5e552f97eda
parent 10108 c68cf030eded
child 11148 064a53861759
--- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Sun Sep 06 03:17:22 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Sun Sep 06 04:30:30 2015 +0200
@@ -45,6 +45,8 @@
     } else {
         UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
         UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
+        background.contentMode = UIViewContentModeScaleAspectFill;
+        background.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
         [backgroundImage release];
         [self.view addSubview:background];
         [background release];