PDA

View Full Version : Auto-rotate a UIImageView?




fxtech
Oct 13, 2008, 01:45 PM
I'm writing a simple app that has an image browser and a UIImageView inside its own UIViewController. I have the UIViewController set to auto-rotate with any orientation, but it doesn't rotate the image when I rotate the device. For example, if I load up a landscape image it shows it centered in the view, with padding above/below the image, but when I rotate the device I want the image to rotate so it fills the entire screen (in landscape mode).

What else do I need to do? Does UIImageView support what I want?