How do I make the UIViewAnimationTransitionCurlUp backwards?
I am working on an application that allows you to flip through the interface under some circumstances. Both landscape orientation (landscape left and right) must be maintained. However, the device mode and orientation changes are fine, however in landscape mode the application allows you to navigate to another screen using the UIViewAnimationTransitionCurlUp effect and then back again with the UIViewAnimationTransitionCurlDown.
This works great when the orientation remains horizontal (scroll the page to the top left, then backward). But when in vertical orientation in vertical direction the coordinates are reversed - the bottom left corner is actually the top right corner in this case, so the animation transition effect is also canceled, which is undesirable.
Is there some way to transform such an animation so that it looks the same in both orientations, or is there some way how to create this effect "manually" (perhaps using Core Animation?).
Thanks for any feedback.
a source to share
The direction of transition is always set according to the Home button, that is, in each orientation, the up / down / right / left measurement is measured according to the Home button. If you want to have the direction of the transition in one direction according to the orientation of the device, you must use conditions to declare the direction for each of the orientations:
UIDeviceOrientation currentOrientation = [[UIDevice currentDevice] orientation];
if (UIDeviceOrientationIsPortrait(currentOrientation))
{
}
else if (UIDeviceOrientationIsLandscape(currentOrientation))
{
}
This, of course, only includes two orientations. You need to work more on this if you want individual transition styles for each of the four orientations.
PS JUST THE LAST ANSWER!: - /
a source to share