project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 6673 1ee72dcea263
parent 6353 d8f62c805619
child 6700 e04da46ee43c
--- a/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Sun Feb 12 11:05:26 2012 +0100
+++ b/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Sun Feb 12 15:04:17 2012 +0100
@@ -41,13 +41,16 @@
 }
 
 -(void) viewDidLoad {
-    if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
-        self.tableView.backgroundView = nil;
+    [self.tableView setBackgroundColorForAnyTable:[UIColor clearColor]];
 
     NSString *imgName = (IS_IPAD()) ? @"mediumBackground~ipad.png" : @"smallerBackground~iphone.png";
     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
-    self.view.backgroundColor = [UIColor colorWithPatternImage:img];
+    UIImageView *background = [[UIImageView alloc] initWithImage:img];
     [img release];
+    background.frame = self.view.frame;
+    background.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
+    [self.view insertSubview:background atIndex:0];
+    [background release];
 
     if (self.listOfSavegames == nil)
         [self updateTable];