Question

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?

Was it helpful?

Solution

You could place all six views into a container view and then apply the animation to that container.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top