Ipad/Iphone - UIView 中的图像旋转
如何旋转充满内容的 UIView。我在 UIView 旋转方面遇到问题。有人可以帮帮我吗???请给我一些类似的逐步示例。
How rotate UIView with full of contents. I am getting problem in rotation of UIViews. Can any one help me out??? please give me some like with step by step example.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这很简单:
这会将整个事情向右转 90 度,包括内容在内。
CGAffineTransformMakeRotation 的参数以弧度为单位...
It's pretty easy:
That will turn the whole thing 90 degrees to the right, contents and all.
The argument to CGAffineTransformMakeRotation is in radians...
嘿,非常感谢您的回复。与旋转相关的问题已解决,但我在横向模式下仍然遇到一些问题,我使用此代码为两个 UIView 制作动画,但在横向模式下,一个视图没有出现,我想要一个理想的解决方案。
我当前正在使用的旋转代码...
UIView 氨基化代码。
Hey thanks a lot for your response. Stuff which are related to rotation are solved but still i have few problems in Landscape mode i am using this code to animate Two UIViews but in Landscape Mode One view is not appearing i want an ideal solution for this.
Rotation Code which i am currently using...
UIView amination code.