Is it possible to pause a UIDynamicAnimator without removing and adding UIDynamicBehaviours?
- 阅读更多 关于 Is it possible to pause a UIDynamicAnimator without removing and adding UIDynamicBehaviours?
问题 I'm implementing some animations using UIDynamics to enable some physics-based transitions between views. I'd like to pause and continue these animations programatically in response to user touches. The only way I've found to do this so far is by removing the behaviours from the dynamic animator and then re-adding them like this: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.dynamicAnimator removeBehaviour: self.behaviour1]; [self.dynamicAnimator removeBehaviour: