cocoaTouch/MainMenuViewController.m
changeset 3027 32890edaa483
parent 3026 1a44c0f2b83b
child 3029 67483e87590c
--- a/cocoaTouch/MainMenuViewController.m	Sat Mar 20 23:33:37 2010 +0000
+++ b/cocoaTouch/MainMenuViewController.m	Sun Mar 21 01:54:57 2010 +0000
@@ -111,6 +111,20 @@
 	[NSThread exit];
 }
 
+-(void) appear {
+    [UIView beginAnimations:@"inserting main controller" context:NULL];
+	[UIView setAnimationDuration:1];
+	self.view.alpha = 1;
+	[UIView commitAnimations];
+}
+
+-(void) disappear {
+    [UIView beginAnimations:@"removing main controller" context:NULL];
+	[UIView setAnimationDuration:1];
+	self.view.alpha = 0;
+	[UIView commitAnimations];
+}
+
 #pragma mark -
 #pragma mark Action buttons
 -(IBAction) startPlaying {