project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 4144 cda2685feeb4
parent 4098 40df542b5f62
child 4356 d1d26f8963a3
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Fri Nov 05 22:32:00 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sat Nov 06 03:57:47 2010 +0100
@@ -228,8 +228,14 @@
 
 
 -(void) showHelp:(id) sender {
-    if (self.helpPage == nil)
-        self.helpPage = [[HelpPageViewController alloc] initWithNibName:@"HelpPageInGameViewController" bundle:nil];
+    if (self.helpPage == nil) {
+        NSString *xib;
+        if (IS_IPAD())
+            xib = @"HelpPageInGameViewController-iPad";
+        else
+            xib = @"HelpPageInGameViewController-iPhone";
+        self.helpPage = [[HelpPageViewController alloc] initWithNibName:xib bundle:nil];
+    }
     self.helpPage.view.alpha = 0;
     [self.view addSubview:helpPage.view];
     [UIView beginAnimations:@"helpingame" context:NULL];