Search This Blog

Wednesday, December 1, 2010

How to set device (UI) orientation programmatically?

Programmer Question

Would like everything on the screen (UI) to be able to rotate from landscape left to right or vica versa.



How do I go about doing this? Is this private?



I know that



-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {}


lets you say which orientations the UI can be, but is there a way to force only one at a time?



Cheers



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails