project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6108 7a8da11a6144
parent 6107 0741c0f0203e
child 6115 485cfecadc9a
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Oct 09 01:45:12 2011 +0200
@@ -20,6 +20,7 @@
 
 
 #import "SchemeWeaponConfigViewController.h"
+#import <QuartzCore/QuartzCore.h>
 
 
 #define LABEL_TAG 57423
@@ -107,21 +108,22 @@
     CGSize screenSize = [[UIScreen mainScreen] bounds].size;
     self.view.frame = CGRectMake(0, 0, screenSize.height, screenSize.width - 44);
 
-    if ([self.tableView respondsToSelector:@selector(setBackgroundView:)]) {
-        if (IS_IPAD())
-            [self.tableView setBackgroundView:nil];
-        else {
-            UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
-            UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
-            [backgroundImage release];
-            [self.tableView setBackgroundView:background];
-            [background release];
-        }
+    if (IS_IPAD()) {
+        [self.tableView setBackgroundColorForAnyTable:[UIColor darkBlueColorTransparent]];
+        self.tableView.layer.borderColor = [[UIColor darkYellowColor] CGColor];
+        self.tableView.layer.borderWidth = 2.7f;
+        self.tableView.layer.cornerRadius = 8;
+        self.tableView.contentInset = UIEdgeInsetsMake(5, 0, 5, 0);
     } else {
-        self.view.backgroundColor = [UIColor blackColor];
+        UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"background~iphone.png"];
+        UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
+        [backgroundImage release];
+        [self.tableView setBackgroundView:background];
+        [background release];
     }
 
-    self.tableView.separatorColor = [UIColor darkYellowColor];
+    self.tableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
+    self.tableView.separatorColor = [UIColor whiteColor];
     self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
 }