{ "id": "63090", "key": "TIMOB-2458", "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": "12076", "description": "Mobile @ HQ Week", "name": "Sprint 2011-36", "archived": true, "released": true, "releaseDate": "2011-09-12" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T15:17:05.000+0000", "created": "2011-04-15T03:20:18.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "ipad", "module_orientation", "orientation", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-30T09:11:56.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}
Hi, everbody
\r\nI have a serious problem in iPad orientation.
This error ocurred in 1.4.3 and 1.5.0 (11/29/2010).
\r\nMy app has this code:
\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundImage: 'img/bkg.png',\r\n orientationModes: [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.LANDSCAPE_LEFT]\r\n});
\r\n
\r\nand in tiapp.xml:
\r\n\r\n<orientations device=\"ipad\">\r\n <orientation>Ti.UI.PORTRAIT</orientation>\r\n <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>\r\n <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>\r\n <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>\r\n </orientations>
\r\n
\r\nMy app start normal in Portrait, and rotate normal, but if i put\r\niPad on Landscape before, and open my app, it show a landscape\r\nsplash and switch to a portrait window in landscape mode.
\r\nCreating a window that is cut down and with black border the\r\nside.
\r\nSorry for my poor english, i'm Brazilian.
Hi, i teste the final version of 1.5.0 and now this was\ncorrected.
Going to mark this resolved, test submitted to internal\ntests.
Sorry to reopen, but this is still happening.
\nChanged tiapp.xml to:
\n\n<iphone>\n <orientations device=\"ipad\">\n <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>\n <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>\n </orientations>\n</iphone>
\n
\nThe build/iphone/ directory was emptied before testing.
\nTested on iPad Simulator with iPad-KS
\nTi API 1.6 (Feb 4 2011 17:12 r349debe8)
Please refer to this HD ticket for details:
\nhttp://developer.appcelerator.com/helpdesk/view/71251#c336281
This is not a bug. Apple's documentation specifies that the\nfirst orientation listed in the Info.plist, when enforced, is the\norientation that your app is forced into before starting. This is\nnot something we can change.
\nIN ORDER TO GET AROUND THIS:
\nOk. But how can I do it for a SplitView app ? Will it work on\n1.5.1 ?
Also this does not change the fact that splitWindow is not\nobeying orientation... even when you set it explicitly, iPad keeps\nrotating the screen:
\nsplitWin = Ti.UI.iPad.createSplitWindow({
\nmasterView:poteTMS.masterNav,\ndetailView:poteTMS.detailNav,\norientationModes:[ Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT ]
\n
\n});
\nEven with this piece of code on app.js and the proposed\nworkaround, the window turns around with accelerometer...
\nTested under 1.5.1 and continuous build\n1.6.0-20110204141203-osx
As for Apple official iOS4 Documentation:
\n\n\nA split view controller relies on its two view controllers to\ndetermine whether interface orientation changes should be made. If\none or both of the view controllers do not support the new\norientation, no change is made. This is true even in portrait mode,\nwhere the first view controller is not displayed. Therefore, you\nmust override the shouldAutorotateToInterfaceOrientation: method\nfor both view controllers and return YES for all supported\norientations.
\n
So the override is not being made I guess...
\nReference: (https://developer.apple.com/library/ios/#featuredarticles/ViewContr...)
Nevermind, what you got to do is the following:
\nOn tiapp.xml you need:
\n\n<orientations device=\"ipad\">\n <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>\n <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>\n</orientations>
\n
\nOn your splitWindow declaration, you need:
\n\nxxx.splitView = Ti.UI.iPad.createSplitWindow({\n masterView: xxx.masterNav,\n detailView: xxx.detailNav,\n orientationModes:[ Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT ]\n});
\n
\nAnd -on both- your views / windows (master and detail),\nyou need:
\n\nxxx.masterWindow = Ti.UI.createWindow({\n title:'Nav Menu',\n backgroundColor:'#e8ecef',\n orientationModes:[ Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT ]\n});
\n
\nSetting orientationModes on splitWindow, master and detail views\n/ windows now forces the splitWindow based app to never rotate.
\nThis should be documented...
\nThanks.
Even with everything listed above set, if you start the\napplication in Portrait mode (when only landscape is available),\nthe first time it loads, you still get a split second rotation that\nshouldn't happen.
\nView here: http://screencast.com/t/71qQBMM7G
\nTesting on device, built with 1.6RC1
\nReference Ticket: http://developer.appcelerator.com/helpdesk/view/74261
This might be an apple bug, have to move it to TBS.