How can the subView detect that the mainView is rotating?

Posted by wolverine on Stack Overflow See other posts from Stack Overflow or by wolverine
Published on 2010-04-25T08:39:47Z Indexed on 2010/04/25 8:43 UTC
Read the original article Hit count: 266

I have a mainView. To this view, I am adding a view of the same size. When the mainView(the background) rotates, its being detected but the subview doesnt have any idea about being rotated. And its functions are not even being called. Even when the program launches too, if I am in landscape mode, its the same way.

How can I make the subView know that the device is being rotated?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiviewcontroller