Title: On iOS, statusbar orientation should be used instead of device orientation · Issue #1437 · NativeScript/NativeScript · GitHub
Open Graph Title: On iOS, statusbar orientation should be used instead of device orientation · Issue #1437 · NativeScript/NativeScript
X Title: On iOS, statusbar orientation should be used instead of device orientation · Issue #1437 · NativeScript/NativeScript
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.sh...
Open Graph 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 UID...
X 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 UID...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/1437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On iOS, statusbar orientation should be used instead of device orientation","articleBody":"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). \n\nThe following is the line which should be changed to grab interface orientation from `UIApplication.sharedApplication().statusBarOrientation` rather than `UIDevice.currentDevice().orientation`\nhttps://github.com/NativeScript/NativeScript/blob/master/application/application.ios.ts#L180\n\r\n\r\n\u003cbountysource-plugin\u003e\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30201124-on-ios-statusbar-orientation-should-be-used-instead-of-device-orientation?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github).\r\n\u003c/bountysource-plugin\u003e","author":{"url":"https://github.com/speigg","@type":"Person","name":"speigg"},"datePublished":"2016-01-25T22:03:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/1437/NativeScript/issues/1437"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b52343d-c123-ce41-a0cd-90b51942440c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9A6:AF22:33253A1:460FB79:6972BF77 |
| html-safe-nonce | cfe299c722040b2cc69c09cc7aa92627e0c50ba117670075bdcb4811c644d19f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUE2OkFGMjI6MzMyNTNBMTo0NjBGQjc5OjY5NzJCRjc3IiwidmlzaXRvcl9pZCI6Ijc0MTE1ODY0Mjc1MDM0Mjc0NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce082f000b81306a648fb59f5a76591513e808a8eb576d49c5f2ac4acda3a3c3 |
| hovercard-subject-tag | issue:128652381 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/1437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aa28db801d6ce2a0d72f11eb7856575b49724004a8cb11258b01075e9045445c/NativeScript/NativeScript/issues/1437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aa28db801d6ce2a0d72f11eb7856575b49724004a8cb11258b01075e9045445c/NativeScript/NativeScript/issues/1437 |
| og:image:alt | 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 UID... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | speigg |
| hostname | github.com |
| expected-hostname | github.com |
| None | aa656e37a6f46b81c2416d9c983f7c54e264ee31be17c0e6c9414b9f9f9c6eb4 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd2db6550c3226c3d384891fd6e7c212a34667be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width