Strange behaviour rotating UIImageView inside UIView
问题 A lot of related questions, but I can't see any that quite match this. My app has a content view and an ad-banner view. Every time the user rotates the device, - (void) layoutSubviews gets called on the content view. My content view comprises a single image. I want this image to rotate along with the device ( it is a textured background, so I just want to rotate it 90° or 0° depending on whether the physical device is in portrait or landscape. Here is the code: // // ContentView.m //