Closed wuf810 closed 13 years ago
I think the xib view for the target view should be setup properly in interface builder, ie all controls are placed in their final positions so you are not counting on the layout manager to places them. This because when the view is captured to the texture it has not been layed out, only loaded. For the graphical parts I can see if I can modify it to go the other way
Hi Edward, thanks for the reply.
I played around a bit. Set autorotate on the viewControllers to yes etc. Then in order to ensure that the transitions are corrected orientated I use glRotatef(-xx, 0, 0, 1); in the setUpTransition.
Although I'm seeing the transition correctly oriented now, I can't get the actual image (captured with UIGraphicsGetImageFromCurrentImageContext) to fit correctly i.e I think its physical size is incorrect or its autoresizing options are incorrect.
I'm sure I'm missing something…either way would really appreciate any thing you can do to help.
Thanks, Michael.
As an aside I've been working on adding a page curl affect to your example (using code from W. Dana Nuon).
Well so far the view is curling but sadly the transition is upside down, back to front and the wrong size :-) Nearly there though
If you are interested in adding this to your demo (I will probably need your help getting the last bits working) then let me know.
That sounds great!
If anyone has any code for landscape I would be forever grateful. For some reason I can't get the animation to show on the screen, it just transitions from one view to the other without the animation. Thanks in advance.
Please please implement the landscape mode.
My problem ended up being that the landscape transitions just weren't showing in the simulator but work fine on the device.
Checkout the FlipReader demo
What and where is the FlipReader demo?
It's a new demo in the repo
https://github.com/epatel/EPGLTransitionView/tree/master/FlipReader-iPad
Thanks Edward. Will check it out.
I know you never implemented Landscape handling but having trouble doing myself. Any/hints tips about how to apply?
Looking at the OpenGL code, the animation (for example Turn) should work as it is animating along the Y axis but it appears the starting and ending animation images always revert to portrait...