iPhone rotation on demand
Posted
by
yosh
on Stack Overflow
See other posts from Stack Overflow
or by yosh
Published on 2011-01-05T11:48:15Z
Indexed on
2011/01/05
11:53 UTC
Read the original article
Hit count: 202
Is there a way to manually check current position of device AND ask device to automatically rotate it without waiting for user to actually rotate the device?
Currently I control the rotation with several IFs in -shouldAutorotateToInterfaceOrientation but in few situations I have to stop the view from rotating and enable it again and I don't want user to rotate the device twice to have the desired orientation.
© Stack Overflow or respective owner