Bug 43992 - UIInterfaceOrientationPortraitUpsideDown doesn't work without custom renderer
Summary: UIInterfaceOrientationPortraitUpsideDown doesn't work without custom renderer
Status: RESOLVED INVALID
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.1
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-04 22:07 UTC by Scott MacDougall
Modified: 2016-09-06 14:38 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Scott MacDougall 2016-09-04 22:07:47 UTC
In previous versions of Xamarin.Forms, you could set Upside Down as a supported orientation in Info.plist, and the screen would correctly rotate. In the latest version, this is no longer the case. I believe it's a result of this pull request: https://github.com/xamarin/Xamarin.Forms/pull/147

To fix this, I had to implement a custom renderer and override GetSupportedInterfaceOrientations. This behaviour should be supported without the use of a custom render as it was in previous versions of Xamarin.Forms.

To reproduce this issue, you just need to create a new Xamarin.Forms solution, and add UIInterfaceOrientationPortraitUpsideDown to the supported orientations in Info.plist of the iOS project. On version 2.3.1.114, the screen will not rotate when upside down.
Comment 1 Scott MacDougall 2016-09-06 14:38:25 UTC
Closing as invalid as I didn't realize that implementation of SupportedInterfaceOrientations was also required in native Obj-C and Swift.