Reputation: 193
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
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