After applying
view.transform = CGAffineTransformRotate(view.transform, degreesToRadians(10))
it seems that it screws up the position of the view so that I have to apply CGAffineTransformTranslate(x,y) to fix it. What is the formula to compute x and y?
A view's frame property is not valid if you have applied a transform to it. As the other poster said, only the center and position properties are meaningful if you chang the transform. What are yo trying to do?