project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
branchios-revival
changeset 11146 f5e552f97eda
parent 10108 c68cf030eded
child 11148 064a53861759
equal deleted inserted replaced
11145:1c89970c7f15 11146:f5e552f97eda
    43         aTableView.layer.cornerRadius = 8;
    43         aTableView.layer.cornerRadius = 8;
    44         aTableView.contentInset = UIEdgeInsetsMake(10, 0, 10, 0);
    44         aTableView.contentInset = UIEdgeInsetsMake(10, 0, 10, 0);
    45     } else {
    45     } else {
    46         UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
    46         UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
    47         UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
    47         UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
       
    48         background.contentMode = UIViewContentModeScaleAspectFill;
       
    49         background.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    48         [backgroundImage release];
    50         [backgroundImage release];
    49         [self.view addSubview:background];
    51         [self.view addSubview:background];
    50         [background release];
    52         [background release];
    51         [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]];
    53         [aTableView setBackgroundColorForAnyTable:[UIColor clearColor]];
    52     }
    54     }