0
A
回答
1
您可以使用此:
//rotate 45 degrees
imgView.transform = CGAffineTransform(rotationAngle: (.pi/4))
//rotate 90 degrees
imgView.transform = CGAffineTransform(rotationAngle: (.pi/2))
等按您的要求,并计算每个事件上变换的图像...
+0
@iYoung如果此答案有帮助,请接受它。 – iUser
相关问题
- 1. 旋转图像使UI慢
- 2. - 旋转图像
- 3. 旋转图像
- 4. 旋转图像
- 5. 旋转图像
- 6. 旋转图像
- 7. 可拖动图像的jQuery UI图像旋转木马
- 8. jQuery - 旋转图像
- 9. javascript旋转图像
- 10. UIImageView旋转图像
- 11. c#图像旋转
- 12. PHP旋转图像
- 13. FFMPEG旋转图像
- 14. ASP图像旋转
- 15. Java旋转图像
- 16. OCR旋转图像
- 17. 像UIPicker旋转图像VIew
- 18. 旋转位图图像
- 19. Android ||位图图像旋转
- 20. 旋转图像标题与图像
- 21. 在图像中旋转图像
- 22. 旋转UI控件
- 23. Monotouch:创建旋转图像?
- 24. C/C++旋转BMP图像
- 25. 将图像旋转180度
- 26. 图像3D旋转OpenCV
- 27. Pcolorfast图像/阵列旋转
- 28. shouldAutorotateToInterfaceOrientation和图像旋转
- 29. 图像旋转OpenCV错误
- 30. Magento中的图像旋转
检查我的答案,让我知道,如果你有任何问题。 – iUser
可能是最好的子类UIControl,以便您可以对touchesBegan等所有典型的UI事件做出反应。 –