[TIMOB-570] need to add orientation support in tiapp.xml
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | ios, iphone, orientation |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:32:10.000+0000 |
Updated | 2011-04-17T01:53:32.000+0000 |
Description
need ability to force the initial orientation, so we need to add orientation back to the tiapp.xml
the following values should be supported:
landscape_left
landscape_right
portrait
This is something that needs to be done in Titanium Developer, as it's modifying the info.plist.
For now as a workaround, create a copy of Info.plist and place in your project root directory. Edit it and Titanium automatically uses this Info.plist instead of generating one.
(from [2ad0ffd1c5252f73b4e6c2113393d2d346f95afd]) [#570 state:needs-more-info] Support for orientations (as Ti.UI.ORIENTATION) in tiapp.xml. See ticket for needs-more-info. https://github.com/appcelerator/titanium_mobile/commit/2ad0ffd1c5252f73b4e6c2113393d2d346f95afd"> https://github.com/appcelerator/titanium_mobile/commit/2ad0ffd1c525...
Technically the bug as listed has been fixed (we now allow users to specify orientations). However, due to the way we force orientations at boot, this doesn't actually have any effect.
Going to go ahead and remark the bug 'open' since it makes sense to fix this, rather than debating whether or not that should be a separate bug.
(from [7983907565dc641c5d9e051594e5c61f2dcae66a]) [#570 state:fixed-in-qa] Full support for default orientation modes for iphone in tiapp.xml. See ticket for more information. https://github.com/appcelerator/titanium_mobile/commit/7983907565dc641c5d9e051594e5c61f2dcae66a"> https://github.com/appcelerator/titanium_mobile/commit/7983907565dc...
There were numerous changes made in that last commit. However, it is worth noting that:
Users who do not update their iphone build directory after 1.5.0, and modify their tiapp.xml to include orientation information, may be in for an unpleasant surprise.
Sure enough, plist reports proper values now.