Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-21-2009, 08:13 PM   #3 (permalink)
jsd
at this moment
 
Join Date: Mar 2009
Location: San Francisco, CA
Posts: 900
jsd is on a distinguished road
Default

you need to create a second view controller for the game. in the playGame: method you then transfer control to your second controller.

there's probably a better way, but this is the only one i've ever got to work without using a navigation controller. assumes your game controller is in a class called MyGameController and the view is in a nib file called MyGameView.xib

Code:
MyGameController *game = [[MyGameController alloc] initWithNibName:@"MyGameView" bundle:nil];
[UIView beginAnimations:nil context:NULL]; 
[UIView setAnimationDuration:0.5]; 
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES]; 
[self.view addSubview:game.view]; 
[UIView commitAnimations];
jsd is offline   Reply With Quote
 

» Advertisements
» Online Users: 445
20 members and 425 guests
bdavid186, BumChinBooth, ChrisYates, desbrina, dfvdan, Dimpleppanchal, falco1973, Gaz, Hamy, iLearnColors, itra, jeroenkeij, LegionMD, monu_rastogi, mraalex, Paxtorn, pipposanta, Robemtims, themartist, ziocleto
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,619
Threads: 94,087
Posts: 402,801
Top Poster: BrianSlick (7,990)
Welcome to our newest member, BumChinBooth
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.