project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 4356 d1d26f8963a3
parent 4349 8efa91f98274
child 4476 4bf74e158f44
equal deleted inserted replaced
4354:c4e1820fa792 4356:d1d26f8963a3
    45 
    45 
    46     if ([self.tableView respondsToSelector:@selector(setBackgroundView:)]) {
    46     if ([self.tableView respondsToSelector:@selector(setBackgroundView:)]) {
    47         if (IS_IPAD())
    47         if (IS_IPAD())
    48             [self.tableView setBackgroundView:nil];
    48             [self.tableView setBackgroundView:nil];
    49         else {
    49         else {
    50             UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"backgroundCenter.png"];
    50             UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
    51             UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
    51             UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
    52             [backgroundImage release];
    52             [backgroundImage release];
    53             [self.tableView setBackgroundView:background];
    53             [self.tableView setBackgroundView:background];
    54             [background release];
    54             [background release];
    55         }
    55         }