I need a way to not rotate a subview when the parent view rotates

Posted by jmurphy on Stack Overflow See other posts from Stack Overflow or by jmurphy
Published on 2010-06-15T16:07:13Z Indexed on 2010/06/15 16:12 UTC
Read the original article Hit count: 335

Hello,

I have a situation where I have a view, and several subviews, and the view and all but one of its subviews are expected to rotate. The one subview that I don't want to rotate is a UIImageView and the image gets distorted when I rotate so I need it to simply not rotate when the rest of the views components rotate.

Does anybody know of a way to achieve this? Is there some excludeFromRotating property I've overlooked?

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about subview