iPhone SDK Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingiPhone SDK Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 8th, 2010, 10:18 AM
computerartist computerartist is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2010
Posts: 6 computerartist User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 0
Flip Animation

I am trying to use a "Flip" transition/animation. On both sides I want to have 2 separate UITables.


The following code that I am trying to do this with works fine, but it obviously "Flips" with the same view:


Code:
	CGContextRef context = UIGraphicsGetCurrentContext();
	[UIView beginAnimations:nil context:context];
	[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
	[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
	[UIView setAnimationDuration:1.0];
	[self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
	[UIView commitAnimations];



I don't know where I would include the second UITable for the backside?

Reply With Quote
  #2  
Old September 8th, 2010, 07:50 PM
computerartist computerartist is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2010
Posts: 6 computerartist User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 0
I have the following code now that is working.

The problem I am running into now though is that the UINavigationController is flipping too:


Code:
	DetailViewControllerLatestElectionPolls *controller = [[DetailViewControllerLatestElectionPolls alloc] initWithNibName:@"DetailView" bundle:nil];
	UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:controller];
	[controller release];
	navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
	[self presentModalViewController:navController animated:YES];
	[navController release];

Reply With Quote
  #3  
Old September 9th, 2010, 02:39 PM
Brokenhope's Avatar
Brokenhope Brokenhope is offline
"That Guy"
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2005
Location: Wouldn't you like to know? (To come beat me up maybee)
Posts: 671 Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level)Brokenhope User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 19 h 20 m 33 sec
Reputation Power: 367
Send a message via AIM to Brokenhope Send a message via MSN to Brokenhope
Id say the problem is:
Code:
[self presentModalViewController:navController animated:YES];


try removing that line.

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingiPhone SDK Development > Flip Animation

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap