Hi
I have a view in my form that must be hidden in Portrait Mode and must be
visible in Landscape mode.
I made the following code:
switch(UIDevice.CurrentDevice.Orientation)
{
case UIDeviceOrientation.LandscapeLeft:
case UIDeviceOrientation.LandscapeRight:
myView.Hidden=false;
case UIDeviceOrientation.Portrait:
case UIDeviceOrientation.PortraitUpSideDown:
myView.Hidden=true;
}
but i have a problem because there are two Orientations also, FaceUp and
Unknown.
My application won't work on them because I don't know whether iOS is in
Landscape or Portrait. I am looking for another way to get what is the iOS
Rotation not Device Orientation.
regards,
PK DEVELOPER
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/A-problem-with-UIDevice-CurrentDevice-Orientation-tp4099463p4099463.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch