iPad SDK, how to handle orientation with an UIImageView

Posted by Salah on Stack Overflow See other posts from Stack Overflow or by Salah
Published on 2010-09-24T10:19:03Z Indexed on 2011/01/06 1:54 UTC
Read the original article Hit count: 423

Filed under:
|
|
|
|

Hello

I'm developing an app for iPad and I try to handle multiple orientation. My app contains a webview and a loading UIImageView that appears when my webview is loading content.

This UIImageView has a background image that I set in InterfaceBuilder. When I change orientation to landscape, the image is cut.

I'd like the UIImageView to set image-portrait.png when the ipad is in portrait mode and image-landscape.png when it's in landscape mode.

Thank you for your help and advices!

Screenshots :

alt text alt text

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad