# HG changeset patch # User koda # Date 1292455497 -3600 # Node ID 4c2dc9d757424e7d7fabde1011b5e5461d20ca3a # Parent f95f7218531adfaaeea216b696546ef22d61b7f0 add more space for this help message on ipad diff -r f95f7218531a -r 4c2dc9d75742 project_files/HedgewarsMobile/Classes/TeamConfigViewController.m --- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Wed Dec 15 22:03:46 2010 +0300 +++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m Thu Dec 16 00:24:57 2010 +0100 @@ -222,21 +222,22 @@ } -(CGFloat) tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { - return 20; + return IS_IPAD() ? 40 : 20; } -(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger) section { - UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 20)]; + NSInteger height = IS_IPAD() ? 40 : 20; + UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, height)]; footer.backgroundColor = [UIColor clearColor]; - UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width*80/100, 20)]; - label.center = CGPointMake(self.tableView.frame.size.width/2, 20/2); + UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width*80/100, height)]; + label.center = CGPointMake(self.tableView.frame.size.width/2, height/2); label.textAlignment = UITextAlignmentCenter; label.font = [UIFont italicSystemFontOfSize:12]; label.textColor = [UIColor whiteColor]; - label.numberOfLines = 1; + label.numberOfLines = 2; if (section == 0) - label.text = NSLocalizedString(@"Tap to add hogs or change color, touch and hold to remove team.",@""); + label.text = NSLocalizedString(@"Tap to add hogs or change color, touch and hold to remove a team.",@""); else label.text = NSLocalizedString(@"The robot badge indicates an AI-controlled team.",@"");