Giter Site home page Giter Site logo

Comments (13)

darrenmcgrath avatar darrenmcgrath commented on June 18, 2024 5

For me on iOS I had to manually edit the Info.plist as the Manifest editor was not updating it correctly
See below for locking iphone and ipad to portrait

<key>UISupportedInterfaceOrientations</key>
<array>
	<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
	<string>UIInterfaceOrientationPortrait</string>
	<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>

from xamarin.plugin.deviceorientation.

wcoder avatar wcoder commented on June 18, 2024 1

Ok, I will check and report results in the near time.

from xamarin.plugin.deviceorientation.

wcoder avatar wcoder commented on June 18, 2024 1

@arjun159, @gmwilhelm please check version 1.0.5.

For Xamarin.Forms iOS look at this: https://github.com/wcoder/Xamarin.Plugin.DeviceOrientation#xamarinforms-ios

from xamarin.plugin.deviceorientation.

wcoder avatar wcoder commented on June 18, 2024

Could you please clarify for Android / iOS / UWP?

from xamarin.plugin.deviceorientation.

gmwilhelm avatar gmwilhelm commented on June 18, 2024

I see this too, on iOS

from xamarin.plugin.deviceorientation.

wcoder avatar wcoder commented on June 18, 2024

Do you use the code for iOS Specific Support?
https://github.com/wcoder/Xamarin.Plugin.DeviceOrientation#ios-specific-support

from xamarin.plugin.deviceorientation.

gmwilhelm avatar gmwilhelm commented on June 18, 2024

I don't have a ViewController in Xamarin.Forms on iOS.

I'm trying like this in my code-behind of my xaml page:

 public partial class MyLockedPage : ContentPage
    {
        public MyLockedPage ()
        {
            InitializeComponent();
            CrossDeviceOrientation.Current.LockOrientation(Plugin.DeviceOrientation.Abstractions.DeviceOrientations.Portrait);
        }
    }

from xamarin.plugin.deviceorientation.

gmwilhelm avatar gmwilhelm commented on June 18, 2024

Thanks, works for me

from xamarin.plugin.deviceorientation.

vhugogarcia avatar vhugogarcia commented on June 18, 2024

Thanks @darrenmcgrath the info.plist solution worked very good.

from xamarin.plugin.deviceorientation.

ravi-simrun avatar ravi-simrun commented on June 18, 2024

we are facing a weird issue with xamarin forms ios orientation.

while implementing the xamarin community toolkit we are facing the orientation issue in ios.

In android, it is working fine but in ios the tool kit tab view is messed up.

Any solution?

from xamarin.plugin.deviceorientation.

wcoder avatar wcoder commented on June 18, 2024

@ravi-simrun could you please provide more info?

  • what is the issue?
  • Xamarin.Forms version?
  • Xamarin community toolkit version?
  • sample app or any additional info

from xamarin.plugin.deviceorientation.

ravi-simrun avatar ravi-simrun commented on June 18, 2024

ya sure please find the attached screenshots
Xamarin.Forms version 5.0.0.2196
Xamarin community toolkit version [1.3.1]
IMG_0034
IMG_0035
IMG_0036

from xamarin.plugin.deviceorientation.

wcoder avatar wcoder commented on June 18, 2024

@ravi-simrun thanks for the details
could you please describe the issue? (screenshots are not so clear) code samples?

from xamarin.plugin.deviceorientation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.