You define this in the ShouldAutoRotateToInterfaceOrientation for that view 
controller.  You have to decide which orientation you want, LandscapeLeft or 
LandscapeRight (or both).
So…

public override bool ShouldAutorotateToInterfaceOrientation 
(UIInterfaceOrientation toInterfaceOrientation)
{
if (toInterfaceOrientation == UIInterfaceOrientation.LandscapeLeft)
{
return true;
}
else
{
return false;
}
}

Bob

On Sep 12, 2012, at 10:34 AM, devnl 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

I am currently building an application where every UIViewController only
supports Portrait, except for one. This has to be LandscapeRight only and
actually has to trigger that rotation as soon as it loads, without
animations and other things. How and where would I trigger this rotation to
happen without the user actually rotating his device or does anyone have a
working sample I can take a look at?

Regards,

devnl



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Having-1-ViewController-with-different-orientation-tp4656971.html
Sent from the MonoTouch mailing list archive at Nabble.com<http://Nabble.com>.
_______________________________________________
MonoTouch mailing list
[email protected]<mailto:[email protected]>
http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to