wcoder / Xamarin.Plugin.DeviceOrientation

Cross-platform plugin to work with screen orientation of mobile device.
MIT License
61 stars 19 forks source link

Possible to use lib for changing orientation iOS #8

Closed tompi closed 6 years ago

tompi commented 6 years ago

Im trying to force an orientation for one view on ios, and thought I could use "LockOrientation" for this, but does not seem to work. Am I doing something wrong or is it not supported?

Minimal solution here: (I would think page should rotate on clicked "Rotate page")

https://github.com/tompi/DebugXamarinForceOrientation

Hope you have time to take a quick look!

tompi commented 6 years ago

Never mind, I found I needed to make app "require fullscreen" for this to work reliably for ios 10+ on ipads. Ref https://stackoverflow.com/questions/43450169/xamarin-ios-10-landscape