When you rotate the smartphone, the rectangular UIView frame rotates and scales simultaneously on the screen. It is known that after transformations, it becomes difficult to deal with the frame property due to the fact that despite the frame dimensions that we see on the screen, frame dimensions are completely different, namely, the most extreme points for describing a rectangle into it. How can I find the real width and height after transformation?
Frame
does not always match the position of the layer. Try[myView.layer.presentationLayer frame]
- Vitali Eller