Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Fix orientation for whole app in ios

$
0
0

I am developing application in PCL project.

In that I change only one page to Landscape. I am able to do that using 2nd Answer in this link.

Also I need to be my app in portrait mode except this one page. But problem is it works only when my phone's auto rotate is off. If my phone's rotation is on and if I open my app in landscape, then my app also opens in landscape.

I tried to return Portrait from GetSupportedInterfaceOrientations function in AppDelegate.cs. but then it won't let me rotate that single page to landscape. :smiley: It remains portrait.

And If I write condition like 'return landscape if current page is this and return portrait for all others', it doesn't work. I dont know why, it returns correct orientation but my page is not rotated.

Any help would be appreciated !
Thank you :smile:


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>