J'utilise deux animations UIView pour déplacer les deux balles différentes à une position particulière. Mais le moment de la collision varie. La première fois qu'ils entrent en collision, mais la première fois, la première balle arrive en premier ou vice versa. Quelqu'un peut-il expliquer comment les faire entrer en collision au même endroit en utilisant l'animation? est-il la question de traitement de fil d'animation UIViewuiview animation threading issue
0
A
Répondre
1
Assurez-vous que vous animez les deux vues dans le même bloc, comme dans
[UIView beginAnimations:nil context:nil];
viewOne.center = CGPointMake(40,40);
viewTwo.center = CGPointMake(80,40);
[UIView commitAnimations];
Questions connexes
- 1. UIView animation
- 2. UIView animation
- 3. Transition et animation UIView
- 4. UIVIew animation - Scaling + Translating
- 5. annuler UIView Animation
- 6. comment faire une animation UIView?
- 7. animation UIView ne fonctionne pas
- 8. UIView Animation ne retardera pas!
- 9. Supprimer UIVIew de SuperView avec Animation
- 10. UIView Animation: PartialCurl ... bug pendant la rotation?
- 11. Appliquer une animation dans UIView spécifié?
- 12. UIView animation didEndSelector: méthode non appelée?
- 13. CALayer Shadows disparaissant lors d'une animation UIView
- 14. question Animation avec UITableView et UIView
- 15. iPhone: - [UIView presentModalViewController: animation] Erreur d'argument
- 16. iPhone UIView Animation désactive UIButton Subview
- 17. Redimensionner et déplacer un UIView avec Core Animation (CAKeyFrameAnimation)
- 18. Animation de UIView et de ses sous-couches
- 19. UIView animation ne fonctionne pas la première fois
- 20. UIView animation - horizontal page curl ... comme un livre?
- 21. UIView Animation ne va pas exécuter la transition
- 22. Annulation du délégué pour une animation UIView spécifique
- 23. comment nous pouvons montrer UIView en utilisant cocos2d avec animation?
- 24. Animation du mouvement de l'image UIView dans animationDidStop
- 25. Animation pulsée
- 26. addSubview animation
- 27. Animation scintillante avec UIViewAnimationTransitionFlip
- 28. Animation sur la vue
- 29. UIScrollView animation zoom
- 30. colorWithPatternImage et setCornerRadius issue
Merci pour relecture rapide, mais tous les deux UIView utilisent deux blocs différents d'animations . Et les points (chemin) sont décidés à l'exécution. Mais ils se croisent toujours à un moment donné. –