{ "id": "62244", "key": "TIMOB-1612", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-15T15:32:51.000+0000", "created": "2011-04-15T02:57:19.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone", "landscape", "module_orientation", "orientation", "orientationmodes", "portrait", "qe-review", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "19956", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-09-10T05:36:31.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": "{html}

If I hold my iPhone 3G (3.1.2) in landscape orientation and\nthen start the app, it flips to landscape mode momentarily\n(after splash), irrespective of the orientationModes setting.

\n

The following code in app.js doesn't prevent this:

\n
\n  rootWin.orientationModes = [ Titanium.UI.PORTRAIT ];\n
\n...it only locks to portrait if the user rotates whilst\nthe app is running.\n

I've tried the following code in the\n'UISupportedInterfaceOrientations' key in Info.plist and it doesn't\nmake a difference either:

\n
\n<array>\n    <string>UIInterfaceOrientationPortrait</string>\n</array>\n<key>UISupportedInterfaceOrientations~ipad</key>\n<array>\n    <string>UIInterfaceOrientationPortrait</string>\n</array>\n
\n

Tested on iPhone 3G (3.1.2) and iPod Touch (3.1.3).
\nAnother user has the same issue with iPhone 3G (3.1.3) but reports\nthat there is no issue on iPad.
\nLink to original message in Q&A section: \nhttp://developer.appcelerator.com/question/54201/orientationmodes-i...

{html}", "attachment": [], "flagged": false, "summary": "iPhone iOS: orientationModes ignored on load", "creator": { "name": "toddg", "key": "toddg", "displayName": "ToddG", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "toddg", "key": "toddg", "displayName": "ToddG", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "214677", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Unable to reproduce on an iPhone 3GS using TiSDK 2.2.0v20120814103312. Ticket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-15T15:32:51.000+0000", "updated": "2012-08-15T15:32:51.000+0000" }, { "id": "218150", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Closed and verified with:\r\n\r\nTitanium Studio:2.1.3.201209071738\r\nTitanium SDK: 2.2.0.v20120907162025", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-09-10T05:36:31.000+0000", "updated": "2012-09-10T05:36:31.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }