Is there a way to execute UIModalTransitionStyleCoverHORIZONTAL (not FlipHorizontal)?

I use objective-c (obviously, I suppose), and I wonder if there is a (simple) way to present a modal view, but the view opens on the right side of the screen.

UIModalTransitionStyleCoverVertical has a new snapshot below, so I naively think there will be a Horizontal copy, but I can not find it in the documents.

I do not mean UIModalTransitionStyleFlipHorizontal (I do not need a 3D flip).

Is there any other way to do this without the luggage of the UINavigationController? Thoughts?

Tks!

+5
source share
1 answer

, , , , , . , . , .

:

[[outgoingView superview] insertSubview:incomingView aboveSubview:outgoingView];
incomingView.transform = [self affineTransformForTransationInDirection:BTRightDirection];

// Set up and start the animation
[UIView beginAnimations:@"cover" context:NULL];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:BTSCREEN_ANIMATION_TIME];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(coverIncomingViewConclusion:finished:context:)];
incomingView.transform = CGAffineTransformIdentity;
self.outgoingView = outgoingView;   // Remember the outgoing view
[UIView commitAnimations];

affineTransformForTransationInDirection: , , . :

CGAffineTransformMakeTranslation(-FHScreenWidth(), 0.0);
+4

All Articles