project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 4082 bfe14b38dad1
parent 4030 adbb37b8c487
child 4115 222b8016c773
--- a/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Mon Nov 01 13:02:39 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Mon Nov 01 18:51:38 2010 +0100
@@ -40,8 +40,10 @@
 }
 
 -(void) viewDidLoad {
-    self.tableView.backgroundView = nil;
-        NSString *imgName;
+    if ([UITableView respondsToSelector:@selector(setBackgroundView:)])
+        self.tableView.backgroundView = nil;
+
+    NSString *imgName;
     if (IS_IPAD())
         imgName = @"mediumBackground~ipad.png";
     else
@@ -49,6 +51,7 @@
     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
     self.view.backgroundColor = [UIColor colorWithPatternImage:img];
     [img release];
+
     [super viewDidLoad];
 }