project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
branchios-revival
changeset 11146 f5e552f97eda
parent 10108 c68cf030eded
child 11147 f9c460720e02
equal deleted inserted replaced
11145:1c89970c7f15 11146:f5e552f97eda
   123         [self.topControl addTarget:aTableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged];
   123         [self.topControl addTarget:aTableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged];
   124         [self.view addSubview:self.topControl];
   124         [self.view addSubview:self.topControl];
   125     } else {
   125     } else {
   126         UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
   126         UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
   127         UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
   127         UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
       
   128         background.contentMode = UIViewContentModeScaleAspectFill;
       
   129         background.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
   128         [backgroundImage release];
   130         [backgroundImage release];
   129         [self.view addSubview:background];
   131         [self.view addSubview:background];
   130         [background release];
   132         [background release];
   131         [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]];
   133         [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]];
   132     }
   134     }