Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void) showMoreGames
- {
- if (moreGames == nil) {
- moreGames = [[DSMoreGamesViewController alloc] initWithNibName:@"DSMoreGamesViewController" bundle:[NSBundle mainBundle]];
- moreGames.view.alpha = 0.0f;
- [UIView beginAnimations:nil context:nil];
- [UIView setAnimationDuration:1.0];
- moreGames.view.alpha = 1.0f;
- [UIView commitAnimations];
- //[self presentModalViewController:moreGames animated:false];
- [[UIApplication sharedApplication].keyWindow addSubview:moreGames.view];
- moreGames.delegate = self;
- }
- }
- -(void) controllerDidFinish:(UIViewController*) view
- {
- [moreGames.view removeFromSuperview];
- [moreGames release];
- moreGames = nil;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement