Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-570] need to add orientation support in tiapp.xml

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:32.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsios, iphone, orientation
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:32:10.000+0000
Updated2011-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

Comments

  1. Blain Hamon 2011-04-15

    This is something that needs to be done in Titanium Developer, as it's modifying the info.plist.

  2. Jeff Haynie 2011-04-15

    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.

  3. Jeff Haynie 2011-04-15

    (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...

  4. Stephen Tramer 2011-04-15

    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.

  5. Jeff Haynie 2011-04-15

    (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...

  6. Stephen Tramer 2011-04-15

    There were numerous changes made in that last commit. However, it is worth noting that:

    • The first listed orientation in is the orientation the device will display in, but ONLY on 3.2 or greater (3.1.x devices do not support the UISupportedInterfaceOrientations plist setting, which determines starting orientation)
    • These are app-wide available orientations, unless overridden
    • The listed orientations are overridden by setting new orientations on a window (although they come back once that window is closed, I believe - see the orientations.js test)

    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.

  7. Blain Hamon 2011-04-15

    Sure enough, plist reports proper values now.

JSON Source