Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

View Orientation

$
0
0

In my Info.plist I have set the application up so that it accepts all orientations. I have then attempted to add code to set a number of the views to accept only portrait mode. This seems to work for the first view but not for any of my other views that come afterwards. Has anyone else had this issue? Here is the code I used.

    public override bool ShouldAutorotate()
    {
        return true;
    }

    public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations()
    {
        return UIInterfaceOrientationMask.Portrait;
    }

Viewing all articles
Browse latest Browse all 204402

Trending Articles