Emi2k4
Emi2k4

Reputation: 193

Flip animation between two UIWebView

I would like to flip animate between two UIWebViews inside one UIViewController.

I have put all together in the storyboard but I'm only able to flip between two UIViewControllers.

Any idea how to flip between two UIWebViews with the flip horizontal animation?

Upvotes: 0

Views: 676

Answers (1)

Giuseppe Mosca
Giuseppe Mosca

Reputation: 1333

Suppose you have view1 and view2, flipping from view1 to view2:

[UIView beginAnimations:@"flipView" context:nil];
[UIView setAnimationDuration:0.3f];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:view1 cache:YES];
[view1 addSubview:view2];
[UIView commitAnimations];

I didn't try my code but I hope it will help you.

Upvotes: 2

Related Questions