How to create a smooth CATransition effect
Posted
by Futur
on Stack Overflow
See other posts from Stack Overflow
or by Futur
Published on 2010-05-03T00:39:57Z
Indexed on
2010/05/03
0:48 UTC
Read the original article
Hit count: 1166
The CATransition what i have implemented works really fine but not smooth, i could see the previous uiview screens during the transition, I am just doing this,
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"];
For moving forward and for moving back wards,
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"];
The effect of sliding is not smooth, is there any other way we can do this which works very smooth?
Please help
© Stack Overflow or respective owner