I can not figure out how to use CATransform3DMakeRotation(). Can somebody please tell me how to use it?
I think the first parameter is the angle, right? But what are the other three?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first is the angle in radians the other 3 parameters are the axis (x, y, z).
So for example if you want to rotate 180 degrees around the z axis just call the function like this:
and apply the result to the transform property of the view you want to rotate.