UIViewAnimationTransitionFlipFromRight & # 8212; voltear un grupo y no solo un elemento

StackOverflow https://stackoverflow.com/questions/1637519

  •  07-07-2019
  •  | 
  •  

Pregunta

En IB tengo 2 UIImageViews, 4 UIText y 1 TabBar. Quiero voltear ImageViews y Texts juntos sin voltear TabBar.

Estoy usando:

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:ImgViewNameHere cache:YES];
[UIView commitAnimations];

Cuando reemplazo " ImgViewNameHere " con el nombre del artículo, ese artículo se voltea como yo quiero.

Pero, quiero que los 6 elementos se inviertan. ¿Puedo agrupar todos estos elementos y voltearlos todos?

¿Fue útil?

Solución

Puede colocar las seis vistas en una vista de contenedor y luego aplicar la animación a ese contenedor.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top