{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1437","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1437/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1437/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1437/events","html_url":"https://github.com/NativeScript/NativeScript/issues/1437","id":128652381,"number":1437,"title":"On iOS, statusbar orientation should be used instead of device orientation","user":{"login":"speigg","id":507127,"avatar_url":"https://avatars.githubusercontent.com/u/507127?v=3","gravatar_id":"","url":"https://api.github.com/users/speigg","html_url":"https://github.com/speigg","followers_url":"https://api.github.com/users/speigg/followers","following_url":"https://api.github.com/users/speigg/following{/other_user}","gists_url":"https://api.github.com/users/speigg/gists{/gist_id}","starred_url":"https://api.github.com/users/speigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speigg/subscriptions","organizations_url":"https://api.github.com/users/speigg/orgs","repos_url":"https://api.github.com/users/speigg/repos","events_url":"https://api.github.com/users/speigg/events{/privacy}","received_events_url":"https://api.github.com/users/speigg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-25T22:03:07Z","updated_at":"2016-01-27T09:46:22Z","closed_at":null,"body":"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). \r\n\r\nThe following is the line which should be changed to grab interface orientation from  `UIApplication.sharedApplication().statusBarOrientation` rather than `UIDevice.currentDevice().orientation`\r\nhttps://github.com/NativeScript/NativeScript/blob/master/application/application.ios.ts#L180\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/175515943","html_url":"https://github.com/NativeScript/NativeScript/issues/1437#issuecomment-175515943","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1437","id":175515943,"user":{"login":"enchev","id":5804953,"avatar_url":"https://avatars.githubusercontent.com/u/5804953?v=3","gravatar_id":"","url":"https://api.github.com/users/enchev","html_url":"https://github.com/enchev","followers_url":"https://api.github.com/users/enchev/followers","following_url":"https://api.github.com/users/enchev/following{/other_user}","gists_url":"https://api.github.com/users/enchev/gists{/gist_id}","starred_url":"https://api.github.com/users/enchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enchev/subscriptions","organizations_url":"https://api.github.com/users/enchev/orgs","repos_url":"https://api.github.com/users/enchev/repos","events_url":"https://api.github.com/users/enchev/events{/privacy}","received_events_url":"https://api.github.com/users/enchev/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T09:46:22Z","updated_at":"2016-01-27T09:46:22Z","body":"Hey folks,\r\n\r\nUIApplication.sharedApplication().statusBarOrientation is deprecated in iOS 9.0:\r\nhttps://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instp/UIApplication/statusBarOrientation"}}