project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3739 97cf933e5bd2
parent 3737 2ba6ac8a114b
child 3778 2e61bb50cc57
equal deleted inserted replaced
3738:f10626e18b8a 3739:97cf933e5bd2
    31                                                                delegate:nil
    31                                                                delegate:nil
    32                                                       cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
    32                                                       cancelButtonTitle:NSLocalizedString(@"Ok, got it",@"")
    33                                                       otherButtonTitles:nil];
    33                                                       otherButtonTitles:nil];
    34                 [alert show];
    34                 [alert show];
    35                 [alert release];
    35                 [alert release];
    36             } else {
    36             } else
    37                 [[self parentViewController] dismissModalViewControllerAnimated:YES];
    37                 [[self parentViewController] dismissModalViewControllerAnimated:YES];
    38 
       
    39             }
       
    40             break;
    38             break;
    41         case 1:
    39         case 1:
    42             theButton.enabled = NO;
    40             theButton.enabled = NO;
    43             [self startGame:theButton];
    41             [self startGame:theButton];
    44 //            [self performSelector:@selector(startGame:)
    42 //            [self performSelector:@selector(startGame:)
   228     [teamConfigViewController viewDidAppear:animated];
   226     [teamConfigViewController viewDidAppear:animated];
   229     [schemeWeaponConfigViewController viewDidAppear:animated];
   227     [schemeWeaponConfigViewController viewDidAppear:animated];
   230     [super viewDidAppear:animated];
   228     [super viewDidAppear:animated];
   231 }
   229 }
   232 
   230 
       
   231 -(void) viewWillDisappear:(BOOL)animated {
       
   232     [mapConfigViewController viewWillDisappear:animated];
       
   233     [teamConfigViewController viewWillDisappear:animated];
       
   234     [schemeWeaponConfigViewController viewWillDisappear:animated];
       
   235     [super viewWillDisappear:animated];
       
   236 }
       
   237 
       
   238 -(void) viewDidDisappear:(BOOL)animated {
       
   239     [mapConfigViewController viewDidDisappear:animated];
       
   240     [teamConfigViewController viewDidDisappear:animated];
       
   241     [schemeWeaponConfigViewController viewDidDisappear:animated];
       
   242     [super viewDidDisappear:animated];
       
   243 }
       
   244 
   233 -(void) didReceiveMemoryWarning {
   245 -(void) didReceiveMemoryWarning {
   234     if (activeController.view.superview == nil)
   246     if (activeController.view.superview == nil)
   235         activeController = nil;
   247         activeController = nil;
   236     // Releases the view if it doesn't have a superview.
   248     // Releases the view if it doesn't have a superview.
   237     [super didReceiveMemoryWarning];
   249     [super didReceiveMemoryWarning];