Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(void) showMoreGames
  2. {
  3.     if (moreGames == nil) {
  4.         moreGames = [[DSMoreGamesViewController alloc] initWithNibName:@"DSMoreGamesViewController" bundle:[NSBundle mainBundle]];
  5.        
  6.         moreGames.view.alpha = 0.0f;
  7.         [UIView beginAnimations:nil context:nil];
  8.         [UIView setAnimationDuration:1.0];
  9.         moreGames.view.alpha = 1.0f;       
  10.         [UIView commitAnimations];
  11.        
  12.         //[self presentModalViewController:moreGames animated:false];
  13.         [[UIApplication sharedApplication].keyWindow addSubview:moreGames.view];
  14.        
  15.         moreGames.delegate = self;
  16.     }
  17. }
  18.  
  19. -(void) controllerDidFinish:(UIViewController*) view
  20. {
  21.     [moreGames.view removeFromSuperview];
  22.     [moreGames release];
  23.     moreGames = nil;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement