iphone - Ipad/Iphone - UIView 中的图像旋转

标签 iphone ipad animation core-graphics rotation

如何旋转充满内容的 UIView。我在 UIView 旋转方面遇到问题。谁能帮我吗???请给我一些类似的逐步示例。

最佳答案

这很简单:

myUIView.transform = CGAffineTransformMakeRotation(M_PI * 0.5); 

这会将整个事情向右转 90 度,包括内容在内。 CGAffineTransformMakeRotation 的参数以弧度为单位...

关于iphone - Ipad/Iphone - UIView 中的图像旋转,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4373798/

相关文章:

ios - 不使用 TableViewController 调用 didSelectRowAtIndexPath

iphone - 如何使用 OpenGL ES 2 将纹理绘制成四边形?

iphone - 在 UIAlertview 中均匀间隔列表

objective-c - ObjC-UIViews : animating view and subview independently?

jquery - StackOverflow 对标签弹出窗口使用什么类型的动画?

iphone - 如何在xcode上创建电子邮件表单?

iphone - 错误 : linker command failed with exit code 1 (use -v to see invocation)

objective-c - 从 JSON 数组 objective-c 获取值时出现问题

iphone - 试图了解iOS平台上的内存管理

css - 当 Angular 8 中出现文本溢出时动画文本滚动