cocoaTouch/MainMenuViewController.m
changeset 3063 0092dc37fbd6
parent 3034 b576460ba8ad
child 3199 1a9938a27677
equal deleted inserted replaced
3062:62eb6095497b 3063:0092dc37fbd6
   111 	[NSThread exit];
   111 	[NSThread exit];
   112 }
   112 }
   113 
   113 
   114 -(void) appear {
   114 -(void) appear {
   115     [[SDLUIKitDelegate sharedAppDelegate].uiwindow addSubview:self.view];
   115     [[SDLUIKitDelegate sharedAppDelegate].uiwindow addSubview:self.view];
       
   116     [self release];
       
   117     
   116     [UIView beginAnimations:@"inserting main controller" context:NULL];
   118     [UIView beginAnimations:@"inserting main controller" context:NULL];
   117 	[UIView setAnimationDuration:1];
   119 	[UIView setAnimationDuration:1];
   118 	self.view.alpha = 1;
   120 	self.view.alpha = 1;
   119 	[UIView commitAnimations];
   121 	[UIView commitAnimations];
   120 }
   122 }
   122 -(void) disappear {
   124 -(void) disappear {
   123     [UIView beginAnimations:@"removing main controller" context:NULL];
   125     [UIView beginAnimations:@"removing main controller" context:NULL];
   124 	[UIView setAnimationDuration:1];
   126 	[UIView setAnimationDuration:1];
   125 	self.view.alpha = 0;
   127 	self.view.alpha = 0;
   126 	[UIView commitAnimations];
   128 	[UIView commitAnimations];
       
   129     
       
   130     [self retain];
   127     [self.view removeFromSuperview];
   131     [self.view removeFromSuperview];
   128 }
   132 }
   129 
   133 
   130 #pragma mark -
   134 #pragma mark -
   131 #pragma mark Action buttons
   135 #pragma mark Action buttons