Animación de restricción no funciona en el dispositivo sino en simulador.
-
20-12-2019 - |
Pregunta
IM UTILIZANDO A LAS ANIMACIONES DE UIVIA PARA MIRAR / ABAJO UNA VISTA (usando AUTOLAYOUT).
La animación funciona en el simulador, pero no está en el dispositivo real.¿Cual podría ser el problema?Código para hacer la animación está aquí
[self layoutIfNeeded];
[UIView animateWithDuration:.5 animations:^{
self.animationConstraint.constant = -190;
[self bringSubviewToFront:self.containerView];
[self.containerView layoutIfNeeded];
}];
He comprobado el uso de la memoria, pero no cruza más del 2% en el momento de hacer las animaciones.
Solución
¿Es el dispositivo simulador similar al mismo que el dispositivo real en lo que respecta al iOS and display size
?
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow