¡@

Home 

2014/10/15 ¤U¤È 10:04:55

iphone Programming Glossary: catransform3dtranslate

Core Animation rotating a layer around arbitrary point

http://stackoverflow.com/questions/199608/core-animation-rotating-a-layer-around-arbitrary-point

UIImageView beginAnimations nil context nil CATransform3D rotationTransform CATransform3DIdentity rotationTransform CATransform3DTranslate rotationTransform 0.0 100.0 0.0 rotationTransform CATransform3DRotate rotationTransform DegreesToRadians 180 0.0 0.0 1.0.. 100.0 0.0 rotationTransform CATransform3DRotate rotationTransform DegreesToRadians 180 0.0 0.0 1.0 rotationTransform CATransform3DTranslate rotationTransform 0.0 100.0 0.0 shape1.layer.transform rotationTransform UIImageView commitAnimations It looks like the..

how to rotate CALayer at one point

http://stackoverflow.com/questions/3926923/how-to-rotate-calayer-at-one-point

point. iphone core animation share improve this question CATransform3D transform CATransform3DIdentity transform CATransform3DTranslate transform rotationPoint.x center.x rotationPoint.y center.y 0.0 transform CATransform3DRotate transform rotationAngle 0.0.. center.x rotationPoint.y center.y 0.0 transform CATransform3DRotate transform rotationAngle 0.0 0.0 1.0 transform CATransform3DTranslate transform center.x rotationPoint.x center.y rotationPoint.y 0.0 Where center is the center of your layer rotationAngle is..

How to rotate an UIImageView with CATransform3DRotate make an effect like Door Opening?

http://stackoverflow.com/questions/6531332/how-to-rotate-an-uiimageview-with-catransform3drotate-make-an-effect-like-door-o

catransform3d sliding doors share improve this question Use CATransform3DRotate like you did in combination with CATransform3DTranslate to rotate around the edge like I did in this answer . Here's a little excerpt you will need to modify this for your own.. . Here's a little excerpt you will need to modify this for your own uses CATransform3D t CATransform3DIdentity t CATransform3DTranslate t 0 self.view.bounds.size.height 2 0 t CATransform3DRotate t rec.scale M_PI 1 0 0 t CATransform3DTranslate t 0 self.view.bounds.size.height..

3D Door Open Animation between two UIViewControllers

http://stackoverflow.com/questions/7685547/3d-door-open-animation-between-two-uiviewcontrollers

aController.view.transform CGAffineTransformMakeTranslation 0 0 CATransform3D _3Dt CATransform3DIdentity _3Dt CATransform3DTranslate _3Dt 320 0 0 _3Dt CATransform3DRotate _3Dt M_PI 1.5 0.0 1 0.0 _3Dt CATransform3DTranslate _3Dt 320 0 0 activeController.view.layer.transform.. CATransform3DIdentity _3Dt CATransform3DTranslate _3Dt 320 0 0 _3Dt CATransform3DRotate _3Dt M_PI 1.5 0.0 1 0.0 _3Dt CATransform3DTranslate _3Dt 320 0 0 activeController.view.layer.transform _3Dt UIView commitAnimations self performSelector @selector animationDone.. withObject aController afterDelay aDuration I think the main problem is that I don't really know how to handle CATransform3DTranslate and CATransform3DRotate . Here are some posts on this but I can't really see how to apply them to a 3D Door opener 3D Door..