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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-25-2010, 06:11 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 3
ksell341 is on a distinguished road
Default Deal a Card with a flip and move

I am trying to flip a UIImageView from one Image to another Image using:

[UIView setAnimationTransition:UIViewAnimationTransitionFl ipFromRight forView:self cache:YES];

While doing this I am also moving the center of the Image View. This is causing the Image to appear like its one side stays in place while the other side moves to the opposite side. I am trying to make it look like someone picked a card up starts moving it and during the move have the object flip over. Does anyone know of a way to make the object appear to do a 3D flip while moving without using a 3D object?
ksell341 is offline   Reply With Quote
Old 03-26-2010, 09:10 AM   #2 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 3
ksell341 is on a distinguished road
Default

Anyone have any ideas?
ksell341 is offline   Reply With Quote
Old 03-26-2010, 09:23 AM   #3 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 22
blyther is on a distinguished road
Default

Quote:
Originally Posted by ksell341 View Post
Anyone have any ideas?

I'm not 100% sure what you mean by your description. I use this same technique and my issue with it is that the card seems to kind of disappear in the middle section of the animation. It sounds like you might need to break the animation down into the different parts you want. For example, you can simulate picking up a card using touchesBegan, touchesMoved and a CGAffineTransformMakeScale to make the card larger. If this is an automated "flip and move" then think thru what the parts of the animation look like and chain the animations together using setAnimationDidStopSelector inside an existing animation.
blyther is offline   Reply With Quote
Old 03-26-2010, 10:30 AM   #4 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 3
ksell341 is on a distinguished road
Default

My issues are the same as yours with the "flip and move" that looks like it disappears in the middle of the move then comes back on the other side. I got the card to pick up and move around and animate in a way that looks good.

When I try chaining the animations together I can only get it to flip in place and the move or move then flip. I'm trying to find out if there is a way to combine these to "flip while moving" without the image disappearing in the middle of the animation.
ksell341 is offline   Reply With Quote
Old 03-26-2010, 01:14 PM   #5 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 22
blyther is on a distinguished road
Default

I suspect we'll need to dip into CAAnimation. Check out the "Core animation programming guide" in the help file. I just haven't had time to try it and I'm calling it "good enough" for now.
blyther is offline   Reply With Quote
Old 08-11-2010, 05:39 AM   #6 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 138
SpaceAce is on a distinguished road
Default

Quote:
Originally Posted by blyther View Post
I suspect we'll need to dip into CAAnimation. Check out the "Core animation programming guide" in the help file. I just haven't had time to try it and I'm calling it "good enough" for now.
Use an animation-block with an UIViewAnimationTransitionFlipFromLeft for flipping the image and at the same time fire an NSTimer to do the move...
SpaceAce is offline   Reply With Quote
Reply

Bookmarks

Tags
card, dealing, flip, flip animation, uiimageview

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: 350
13 members and 337 guests
akacaj, c2matrix, cgokey, esoteric, GHuebner, givensur, HemiMG, Mirotion22, mjnafjke, Pudding, SLIC, Sonuye857, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,652
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Sonuye857
Powered by vBadvanced CMPS v3.1.0

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