project_files/HedgewarsMobile/Classes/HWUtils.m
changeset 6108 7a8da11a6144
parent 6094 16b12a6417d1
child 6208 b831679e9467
--- a/project_files/HedgewarsMobile/Classes/HWUtils.m	Sun Oct 09 00:24:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/HWUtils.m	Sun Oct 09 01:45:12 2011 +0200
@@ -59,6 +59,20 @@
 @end
 
 
+@implementation UITableView (extra)
+
+-(void) setBackgroundColorForAnyTable:(UIColor *) color {
+    UIView *backView = [[UIView alloc] initWithFrame:self.frame];
+    backView.backgroundColor = color;
+    self.backgroundView = backView;
+    [backView release];
+    self.backgroundColor = [UIColor clearColor];
+}
+
+@end
+
+
+
 @implementation UIColor (extra)
 
 +(UIColor *)darkYellowColor {