0
我所實現的作品真的很好,但並不順利,我可能會在過渡期間看到前面的UIView屏幕的CATransition,我只是這樣做,如何創建平滑CATransition效果
CATransition *animation = [CATransition animation];
[animation setDuration:0.1];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromRight];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[[objView layer] addAnimation:animation forKey:@"SwitchToView"];
前進併爲後退病房,
CATransition *animation = [CATransition animation];
[animation setDuration:0.1];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[[objRemovableView layer] addAnimation:animation forKey:@"SwitchToView"];
滑動的影響不光滑,有沒有其他辦法,我們可以做到這一點,工作非常流暢?
請幫忙
這只是一個例子。請幫助增加時間範圍和解釋效率請 – Futur 2010-09-27 07:29:34