UIViewAnimationTransitionFlipFromRight -- flip a group and not just one item
In IB I have 2 UIImageViews, 4 UIText, and 1 TabBar. I want to flip the ImageViews and the Texts together without flipping the TabBar.
I am using:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:ImgViewNameHere cache:YES];
[UIView commitAnimations];
When I replace "ImgViewNameHere" with the name of the开发者_开发技巧 item, that item flips like I want.
But, I want all 6 items to flip together. Can I group all these items and flip them all?
You could place all six views into a container view and then apply the animation to that container.
精彩评论