{ "id": "171390", "key": "TIMOB-25922", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-03-23T15:25:20.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-31T23:38:55.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "There are certain circumstances when we want to prevent autorotation of views after the view's allowed orientation modes have been set and the view controller has already become the root controller. Since iOS 6 we have the shouldAutorotate which we could use to prevent the UI to apply the transforms and translations performed by UIKit. \r\nIf we add a property to Ti.App called ie. preventRotation and set from the proxy, we could enable and disable UI rotation at will. The property will then be checked by the shouldAutorotate method in TiRootController.m \r\nI think this could be a useful feature.\r\n\r\n\r\n{code:java}\r\n// self.preventRotation defined in the class TiRootController\r\n- (BOOL)shouldAutorotate\r\n{\r\n return !self.preventRotation;\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Allow programmatically disabling UI autorotation", "creator": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS", "comment": { "comments": [ { "id": "435888", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Thanks for the ticket. Our engineers will look into it. You will be informed when they decide to integrate this. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-03-24T21:58:18.000+0000", "updated": "2018-03-24T21:58:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }