FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

On iOS, statusbar orientation should be used instead of device orientation · Issue #1437 · NativeScript/NativeScript · GitHub

On iOS, statusbar orientation should be used instead of device orientation #1437

Description

In application.ios.ts, the orientation should be coming from the status bar, not the device. On iOS, UIDevice.currentDevice().orientation describes the orientation of the device, and is of type UIDeviceOrientation, while UIApplication.sharedApplication().statusBarOrientation describes the orientation of the interface, and is of type UIInterfaceOrientation (a type which doesn't include FaceUp or FaceDown as orientations).

The following is the line which should be changed to grab interface orientation from UIApplication.sharedApplication().statusBarOrientation rather than UIDevice.currentDevice().orientation
https://github.com/NativeScript/NativeScript/blob/master/application/application.ios.ts#L180


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL