PDA

View Full Version : iphone flip mode???




fredlee
Nov 4, 2008, 11:58 PM
does anyone know how can I flip a view from bottom in iphone?? could anyone hlep me?? thanks



jnic
Nov 5, 2008, 07:23 AM
The following sample code demonstrates various ways of transitioning between views: http://developer.apple.com/iphone/library/samplecode/ViewTransitions/index.html

fredlee
Nov 5, 2008, 11:59 PM
The following sample code demonstrates various ways of transitioning between views: http://developer.apple.com/iphone/library/samplecode/ViewTransitions/index.html

y, I have read the samples, but I want to flip the view, there is no this mode in this sample

jnic
Nov 6, 2008, 04:21 AM
Could you describe what you mean by "flip the view" then?

fredlee
Nov 6, 2008, 08:09 PM
Could you describe what you mean by "flip the view" then?
like this:UIViewAnimationTransitionFlipFromLeft. This can flip view from left.
I want flip view from bottom

jnic
Nov 7, 2008, 04:22 AM
For vertical flip you'll probably have to create your own transform. Docs here: http://developer.apple.com/documentation/GraphicsImaging/Reference/CGAffineTransform/Reference/reference.html

I think the MyPhoto code example contains the transformation matrix you want: http://developer.apple.com/samplecode/MyPhoto/

fredlee
Nov 10, 2008, 03:33 AM
For vertical flip you'll probably have to create your own transform. Docs here: http://developer.apple.com/documentation/GraphicsImaging/Reference/CGAffineTransform/Reference/reference.html

I think the MyPhoto code example contains the transformation matrix you want: http://developer.apple.com/samplecode/MyPhoto/

y, I know how to vertical flip, I want to know how to horizonal flip, could you help me?

jnic
Nov 11, 2008, 07:05 AM
If you'll take a moment to actually examine the links I've posted, you'll see that CGAffineTransform offers flips in any direction.

fredlee
Nov 11, 2008, 08:30 PM
If you'll take a moment to actually examine the links I've posted, you'll see that CGAffineTransform offers flips in any direction.
y, I have tried to flip use CGAffine, BUT it looks not very good. If there is no other way, I have to choose this method