I used the code below to make transition
CATransition *transition = [CATransition animation];
transition.duration = duration ;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionMoveIn;
transitioning = YES;
transition.delegate = self;
[self.view.layer addAnimation:transition forKey:nil];
fromUIView.hidden = YES;
toUIView.hidden = NO;
UIImageView *tmp = toUIView;
toUIView = fromUIView;
toUIView = tmp;
but I hope to pause at transition progress 0.3 to do something, then resume the transition to progress 0.6 do something and resume.
is it possible ?
I’ve never worked with
CATransitionbefore, but I think you can do this withNSTimer,GCD, orperformSelector:withObject:afterDelay:.For instance:
where
doSomethingis