Tuesday, 15 July 2014

cabasicanimation - Invert Core Animation Direction -


How can I change the vertical direction of an animation?

I currently have this:

  - (zero) flipway {CABasic animation * animation = [with CABasic animation animation: @ "Transform"]; Self.view.layer.zPosition = 100; CATransform3D conversion = CateringForm 3DMarketation (M_PI, 1, 0, 0); Transform.m34 = 1.0 / 800.0; [Animation set tovolu: [NSV Value Value Extra 3D: Transform]]; [Animation set duration: 5]; [Animation Setting Function: [CameticTiming Function Functionname: KCAMDITINGFunctionExen]]; [Animation setfilmoda: kCFilmodayforward]; [Animation cetermoidone end:]; [Animation Settlement: Self]; [Self.view.layer addAnimation: animation fork: @ "test"]; }  

And it works, but the rotation is a flip from top to bottom, how can I make it from bottom to top?

Not sure what you are asking.

  CATransform3D transform = CATransform3DMakeRotation (- M_PI, 1, 0, 0);  

No comments:

Post a Comment