Rotation mismatch between iOS Simulator and physical iPhone 6s

OsmanEsenOsmanEsen DKMember
edited January 2016 in Xamarin.iOS

I have disabled autorotation functionality in my NavigationController:

partial class SalonUserNavigationController : UINavigationController
    {
        public SalonUserNavigationController (IntPtr handle) : base (handle)
        {
        }

        public override bool ShouldAutorotate()
        {
            return false;
        }
    }

It actually prevents autorotating in iPhone 6s IOS 9.2 Simulator, but when I'm deploying to my own IPhone 6s (IOS 9.2) physical device, it still keeps rotating. Did I miss any configuration with my own device, since there is such a mismatch ?.

Sign In or Register to comment.