iPad Orientation Lock Notification?

Posted by vakio on Stack Overflow See other posts from Stack Overflow or by vakio
Published on 2010-04-16T21:18:09Z Indexed on 2010/04/16 21:23 UTC
Read the original article Hit count: 240

Filed under:
|
|
|
|

Is there a way to receive a notification when the iPad gets locked? When the lock is set on or off, it does send a receivedRotate: notification, but I need a way to be able to distinguish normal rotations from lock "rotations".

The problem is I am rotating things in my view when the rotation changes. When the lock is activated, the iPad sends a receivedRotate: with UIInterfaceOrientationPortrait.

I've looked in UIDevice for something like isOrientationLocked, but with no success.

Thanks for any clues on this.

© Stack Overflow or respective owner

Related posts about ipad

Related posts about orientation