I’m almost done coding my project and I have come across 1 to 2 problems with the fading. Here is what my code looks like
CATransition *animation = [CATransition animation];
[animation setDuration:0.5];
[animation setType:kCATransitionFade];
[animation setSubtype:kCATransitionFromRight, kCATransitionFromLeft];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
It’s telling me to set a subtype. I basically want to animate going back and going forward. I know i’m pretty close. What else am i missing from the code?
As near as I can tell
-setSubtype:takes oneNSString*argument.The line:
should probably be either:
or:
EDIT: You may also want to add:
to begin animating your
myViewobject (which is aUIViewor subclass).