project_files/HedgewarsMobile/Classes/HelpPageLobbyViewController.m
branchios-revival
changeset 11122 2b4e89e5203b
parent 11121 182a42b79610
child 12872 00215a7ec5f5
--- a/project_files/HedgewarsMobile/Classes/HelpPageLobbyViewController.m	Sat Aug 15 00:22:04 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/HelpPageLobbyViewController.m	Sat Aug 15 00:59:33 2015 +0200
@@ -55,10 +55,11 @@
 }
 
 -(IBAction) dismiss {
-    [UIView beginAnimations:@"dismiss help" context:NULL];
-    self.view.alpha = 0;
-    [UIView commitAnimations];
-    [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
+    [UIView animateWithDuration:0.5 animations:^{
+        self.view.alpha = 0;
+    } completion:^(BOOL finished){
+        [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0];
+    }];
 }
 
 @end