5
A
回答
11
对于2D旋转用途:
//rotate label in 45 degrees
label.transform = CGAffineTransformMakeRotation(M_PI/4);
对于3D变换看到this thread:
CATransform3D _3Dt = CATransform3DMakeRotation(radians(90.0f), 1.0, 0.0, 0.0);
8
// flipping view along axis
// this will rotate view in 3D along any axis
[UIView beginAnimations:nil context:nil];
CATransform3D _3Dt = CATransform3DRotate(self.layer.transform, 3.14, 1.0, 0.0,0.0);
[UIView setAnimationRepeatCount:100];
[UIView setAnimationDuration:0.08];
self.layer.transform=_3Dt;
[UIView commitAnimations];
0
SWFT 3示例
let rotationTransform = CATransform3DRotate(myView.layer.transform, CGFloat.pi, 1, 0, 0)
UIView.animate(withDuration: 0.5) {
self.myView.layer.transform = rotationTransform
}
相关问题
- 1. 将iPhone旋转应用于3d对象
- 2. iphone:点击按钮将旋转视图
- 3. iphone - 处理视图旋转
- 4. iPhone:防止旋转视图
- 5. iPhone UITabBarController和旋转视图
- 6. iPhone视图不会旋转
- 7. iPhone旋转视频
- 8. iPhone:旋转绘图而不旋转绘制它的视图
- 9. 图像3D旋转OpenCV
- 10. 图像上的3D旋转
- 11. 将2D视口转换转换为3D旋转
- 12. 2个按钮的Iphone 3D旋转
- 13. Starling 3D旋转
- 14. iPhone中的旋转木马视图
- 15. iphone - 子视图旋转问题
- 16. 在iphone中旋转覆盖视图
- 17. iPhone dev - 手动旋转视图
- 18. iPhone在navigationViewController模式下旋转视图
- 19. 旋转iPhone并改变视图
- 20. iPhone视图旋转/摇摆动画
- 21. Iphone:旋转后重新加载视图
- 22. iPhone多视图旋转地狱
- 23. iPhone:在UITableViewCell中旋转滚动视图
- 24. 当iPad/iPhone旋转时旋转子视图
- 25. 旋转视图
- 26. 旋转视图
- 27. 旋转视图
- 28. 使用单个旋转kinect的房间的360度3D视图
- 29. 旋转iphone视频数据
- 30. 旋转3D立方体透视问题
这个问题是非常类似于你:HTTP ://stackoverflow.com/questions/347721/ uiview-perspective-transform – 2010-05-11 17:38:43
感谢Brad。你认为我应该删除这个吗? – hpique 2010-05-11 18:00:07