How to do orientations in iphone?
<p>I have a Setting page which contains setting functions of the application,there is a button called lock-rotation button,by default my application supports all the orientations,but my need is i want to set lock the rotation in my lock-rotation button,if the user tap the lock-rotation button it popups two button lock horizontally and lock vertically,if the user tap any one of this button it automatically stops the rotation of the corresponding orientation .How to do this?
Thanks in advance.</p>
