project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 6083 72c882c0fd0f
parent 6078 8c0cc07731e5
child 6266 b02a1e92dba2
equal deleted inserted replaced
6082:16ca7a7a6aa6 6083:72c882c0fd0f
    42 
    42 
    43 -(void) viewDidLoad {
    43 -(void) viewDidLoad {
    44     if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
    44     if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
    45         self.tableView.backgroundView = nil;
    45         self.tableView.backgroundView = nil;
    46 
    46 
    47     NSString *imgName;
    47     NSString *imgName = (IS_IPAD()) ? @"mediumBackground~ipad.png" : @"smallerBackground~iphone.png";
    48     if (IS_IPAD())
       
    49         imgName = @"mediumBackground~ipad.png";
       
    50     else
       
    51         imgName = @"smallerBackground~iphone.png";
       
    52     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
    48     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
    53     self.view.backgroundColor = [UIColor colorWithPatternImage:img];
    49     self.view.backgroundColor = [UIColor colorWithPatternImage:img];
    54     [img release];
    50     [img release];
    55 
    51 
    56     if (self.listOfSavegames == nil)
    52     if (self.listOfSavegames == nil)