{ "id": "116992", "key": "TIMOB-14499", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15577", "description": "2013 Sprint 16 Core", "name": "2013 Sprint 16 Core", "archived": true, "released": true, "releaseDate": "2013-08-12" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-08-07T22:15:10.000+0000", "created": "2013-07-09T14:42:15.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "30710", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "118114", "key": "TIMOB-14780", "fields": { "summary": "iOS: Ti.UI.orientationModeFilter to app-wide block orientations", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:54:27.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Description\r\n\r\nWhen building a custom iOS module and using UIActivity (modal window), the UIActivityController keeps rotating, even the app orientation is locked to a particular orientation, e.g Portrait.\r\n\r\nAttached is a sample project containing the module which runs the module's example app.js\r\n\r\nThe module source can be found here: https://github.com/viezel/TiSocial.Framework\r\n\r\nh4. Steps to reproduce\r\n\r\n1. Run the example app\r\n2. If you rotate the screen it should remain in portrait\r\n3. click on the button \"Activity View\"\r\n4. Try to rotate the screen. Despite the locked portrait orientation the modal window causes the screen to rotate.\r\n", "attachment": [ { "id": "40591", "filename": "rotationtest.zip", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-09T14:42:15.000+0000", "size": 2406150, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Can not control orientation of UIActivity (modal window) when building a module", "creator": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5, 6", "comment": { "comments": [ { "id": "264062", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "While working on this, I noticed that - (UIViewController *)performWithActivityItems:(NSArray *)activityItems is missing a return statement. This should be fixed in the module.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-31T00:22:58.000+0000", "updated": "2013-07-31T00:22:58.000+0000" }, { "id": "264073", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay, so here's the sticky wicket:\n\nDuring device rotation, Titanium runtime consults the topmost view controller for the preferred orientation. This makes sense, as a modal can override the hidden view's orientation. As such, I'm tempted to mark this invalid, because the UI Activity's view controller is explicitly allowing the rotation by returning 26 for -[UIViewController supportedInterfaceOrientations].\n\nSo one could claim that it's the module developer's responsibility, as it's their view controller. And were the 'SLTwitterComposeViewController' subclassable or public, that's what I would suggest, but it isn't, sadly. One possible workaround would be to make a view controller that wraps and provides the right interfaceOrientation value, but that also gets difficult. However, it is one option the module developer may want to look into.\n\nSo what to do? Overriding native view controller preferences is a risky proposition, one we explicitly avoid because of past issues. This especially gets hairy with parity and the like, because this WOULD be a new feature. But a native experience would allow one to do such. I hate to say it, but maybe this is something that needs punting until 3.2.0, when orientation support is limited to iOS 6+ and much of the edge cases that this would run up against are reduced.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-31T02:04:14.000+0000", "updated": "2013-07-31T02:04:14.000+0000" }, { "id": "264074", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For now, advising module developer wrap their view controller in view controller which they can control orientation. Will advise to mark this ticket as invalid (since this is expected behavior) and propose a new feature for 3.2.0 as part of the orientation issues.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-31T02:05:37.000+0000", "updated": "2013-07-31T02:05:37.000+0000" }, { "id": "265470", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-07T22:15:10.000+0000", "updated": "2013-08-07T22:15:10.000+0000" }, { "id": "266845", "author": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "body": "Blain,\r\nThanks for the description. Make sense its invalid (even though its a bug). \r\nIll wait for 3.2.0 to update my module", "updateAuthor": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-16T06:45:51.000+0000", "updated": "2013-08-16T06:45:51.000+0000" }, { "id": "414934", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:54:27.000+0000", "updated": "2017-03-22T20:54:27.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }