2012-10-17 5 views

답변

1
애니메이션 호출 할 때 당신은 단지 UIViewAnimationOptionAllowUserInteraction 옵션을 포함 할 필요가

: 당신이 원하는

[UIView animateWithDuration:animationDuration 
          delay:0 
         options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) 
        <snip>]; 
+0

작동하지 않습니다. – Rais

0
CATransition *animation = [CATransition animation]; 
    [animation setDelegate:self]; 
    [animation setType:kCATransitionFade]; 
    [animation setDuration:0.0];// try 0.1 also 
    [animation setTimingFunction:[CAMediaTimingFunction functionWithName: 
            kCAMediaTimingFunctionEaseInEaseOut]]; 
    [[yourImageView layer] addAnimation:animation forKey:@"transitionViewAnimation"];//Try self.view insted of yourImageView if you want to animate whole view 
관련 문제