为什么要旋转imageView,它会改变位置? [英] Why rotating imageView, it changes position?
本文介绍了为什么要旋转imageView,它会改变位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用时:ImageView.transform = CGAffineTransformRotate(ImageView.transform,rotation);每次我旋转imageView和NSLog(@"x:%f y:%f",ImageView.frame.orgin.x,ImageView.frame.orgin.y)时,x和y总是会更改值?为什么?
when I use: ImageView.transform = CGAffineTransformRotate(ImageView.transform, rotation); everytime I rotate imageView and I NSLog(@"x:%f y:%f", ImageView.frame.orgin.x, ImageView.frame.orgin.y), x and y always change value?? Why?
推荐答案
查看全文