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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-27-2010, 10:45 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 28
Red face Animating ViewControllers

I need help! I am trying to animate between each of my view controllers.
So what I am doing is I have 4 View controllers each with a separate XIB, I am able to switch between them using this code:

[self presentModalViewController:smallAnimals animated:YES];
Small_Animals *viewController = [[Small_Animals alloc] initWithNibName:@"Small Animals" bundle:nil];
self.smallAnimals = viewController;
[viewController release];

But all this does is bring in the new view by scrolling it up from the bottom of the screen! I would like to be able to switch between them using flip animation or curl animation ETC. Please Help.
MacSteve85 is offline   Reply With Quote
Old 02-10-2010, 03:09 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 13
Default Try this

Code:
YourViewController *controller = [[YourViewController alloc] initWithNibName:@"YourView" bundle:nil];
	controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
	[self presentModalViewController:controller animated:YES];
	
	[controller release];
ffjones54 is offline   Reply With Quote
Reply

Bookmarks

Tags
animating, iphone, view controllers, view transitions.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 261
19 members and 242 guests
2WeeksToGo, @sandris, AdamL, ADY, BrianSlick, Dani77, diyora, F_Bryant, GHuebner, HDshot, headkaze, mer10, prchn4christ, Rudy, smithdale87, Thompson22, timle8n1, Touchmint, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,748
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0