project_files/HedgewarsMobile/Classes/SupportViewController.m
changeset 6658 2cccf6b2b89d
parent 6078 8c0cc07731e5
child 6700 e04da46ee43c
--- a/project_files/HedgewarsMobile/Classes/SupportViewController.m	Thu Feb 09 18:09:03 2012 +0100
+++ b/project_files/HedgewarsMobile/Classes/SupportViewController.m	Thu Feb 09 18:59:46 2012 +0100
@@ -143,14 +143,18 @@
 -(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger) section {
     if (section == 1) {
         UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 240)];
+        footer.autoresizingMask = UIViewAutoresizingFlexibleWidth;
+
         UIImage *img = [[UIImage alloc] initWithContentsOfFile:@"surprise.png"];
         UIImageView *imgView = [[UIImageView alloc] initWithImage:img];
         [img release];
         imgView.center = CGPointMake(self.tableView.frame.size.width/2, 120);
+        imgView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
         [footer addSubview:imgView];
         [imgView release];
         
         UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 20)];
+        label.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
         label.textAlignment = UITextAlignmentCenter;
         label.text = @" ♥ THANK YOU ♥ ";
         label.backgroundColor = [UIColor clearColor];