project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 4082 bfe14b38dad1
parent 4030 adbb37b8c487
child 4115 222b8016c773
equal deleted inserted replaced
4081:d4cb8f216724 4082:bfe14b38dad1
    38 
    38 
    39     [self.tableView reloadData];
    39     [self.tableView reloadData];
    40 }
    40 }
    41 
    41 
    42 -(void) viewDidLoad {
    42 -(void) viewDidLoad {
    43     self.tableView.backgroundView = nil;
    43     if ([UITableView respondsToSelector:@selector(setBackgroundView:)])
    44         NSString *imgName;
    44         self.tableView.backgroundView = nil;
       
    45 
       
    46     NSString *imgName;
    45     if (IS_IPAD())
    47     if (IS_IPAD())
    46         imgName = @"mediumBackground~ipad.png";
    48         imgName = @"mediumBackground~ipad.png";
    47     else
    49     else
    48         imgName = @"smallerBackground~iphone.png";
    50         imgName = @"smallerBackground~iphone.png";
    49     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
    51     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
    50     self.view.backgroundColor = [UIColor colorWithPatternImage:img];
    52     self.view.backgroundColor = [UIColor colorWithPatternImage:img];
    51     [img release];
    53     [img release];
       
    54 
    52     [super viewDidLoad];
    55     [super viewDidLoad];
    53 }
    56 }
    54 
    57 
    55 -(void) viewWillAppear:(BOOL)animated {
    58 -(void) viewWillAppear:(BOOL)animated {
    56     [self updateTable];
    59     [self updateTable];