What i have:
i have a viewcontroller that supports Portrait and landscape. When in landscape i show a filter view for the content of the portrait.
What i need to do:
When the user selects a filter in the landscape view i want to force rotate the device back to portrait.
I have done some Googling and discovered
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait];
This is a private API and i dont want to do that. (But excatly what i am after)
In short - on user action i want to force rotate the device. Is there something i am missing from the docs?
Any ideas would be super. Dan