project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m
changeset 4098 40df542b5f62
parent 4034 634a8c8682de
child 4354 c4e1820fa792
--- a/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m	Tue Nov 02 10:53:38 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m	Wed Nov 03 00:48:42 2010 +0100
@@ -147,7 +147,7 @@
     refSecondBlackView.alpha = 0;
     [UIView commitAnimations];
     [refBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
-    [refSecondBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
+    [refSecondBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2];
 }
 
 // overlay with controls, become visible later, with a transparency effect
@@ -163,7 +163,9 @@
     else
         gameWindow = [[UIApplication sharedApplication] keyWindow];
     [gameWindow addSubview:overlayController.view];
-    [overlayController release];
+    //[[[gameWindow subviews] objectAtIndex:0] addSubview:overlayController.view];
+    // don't release a controller according to http://developer.apple.com/library/ios/#qa/qa2010/qa1688.html
+    //[overlayController release];
 }
 
 // override the direct execution of SDL_main to allow us to implement the frontend (or even using a nib)