equal
deleted
inserted
replaced
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) |