How do I detect the rotation of the iPhone for approximately 90 degrees? Additionally, I don’t need/want the screen itself to rotate. I just want to call a function when the phone has been rotated. Thanks!
How do I detect the rotation of the iPhone for approximately 90 degrees? Additionally,
Share
Your view controller will be sent:
Implement it to do something when the phone is being rotated
After the rotation is done, you get:
Here it is in the docs (see Handling View Rotations)
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html