project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 4115 222b8016c773
parent 4082 bfe14b38dad1
child 4362 8dae325dc625
--- a/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Thu Nov 04 18:19:28 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Fri Nov 05 00:38:30 2010 +0100
@@ -40,7 +40,7 @@
 }
 
 -(void) viewDidLoad {
-    if ([UITableView respondsToSelector:@selector(setBackgroundView:)])
+    if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
         self.tableView.backgroundView = nil;
 
     NSString *imgName;
@@ -165,7 +165,7 @@
     footer.backgroundColor = [UIColor clearColor];
     
     UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width*80/100, 100)];
-    label.center = CGPointMake(self.tableView.frame.size.width/2,70);
+    label.center = CGPointMake(self.tableView.frame.size.width/2, 70);
     label.textAlignment = UITextAlignmentCenter;
     label.font = [UIFont systemFontOfSize:16];
     label.textColor = [UIColor lightGrayColor];
@@ -178,6 +178,10 @@
     return [footer autorelease];
 }
 
+-(CGFloat) tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
+    return 125;
+}
+
 -(void) tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
     NSUInteger row = [indexPath row];
     [(EditableCellView *)[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:row inSection:0]] save:nil];