Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19151] iOS9: Implement native auto layout to use on iOS9 SplitView- NSLayoutConstraint

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-10-09T02:28:55.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.1.0
ComponentsiOS
Labelsn/a
ReporterPedro Enrique
AssigneePedro Enrique
Created2015-07-02T22:49:38.000+0000
Updated2015-10-29T23:56:55.000+0000

Description

The iOS9 SplitView component requires its children views to use the iOS auto layout engine. This is also known as NSLayoutConstraint. This needs to be implemented in Titanium Views.

Comments

  1. Paul Hemetsberger 2015-09-21

    Is this the reason why iOS9 Slide Over doesn't work? If that is the case I would ask you to please rank this higher. I keep getting lots of requests for this from our app users.
  2. Matthew Delmarter 2015-09-21

    I second that. I am also being flooded with requests around this from users, who are expecting this feature to "just work".
  3. Pedro Enrique 2015-10-08

    PR: https://github.com/appcelerator/titanium_mobile/pull/7281
  4. Chee Kiat Ng 2015-10-09

    PR tested and merged.

    Test cases

    1. To test this, add the following tag to the ios tag in tiapp.xml
       <use-autolayout>true</use-autolayout>
       
    2. with this flag enabled, after build, see /build/iphone/Classes/defines.h 3. with this flag disabled, after build, see /build/iphone/Classes/defines.h 4. scons, ti sdk install -d, and look in ~/Library/Application Support/Titanium/mobilesdk/osx//

    Expected results

    2. you can find #define TI_USE_AUTOLAYOUT 3. you cannot find #define TI_USE_AUTOLAYOUT 4. you should not find any layout.xcodeproject. that is for unit test and only available in the repo, not sconsed sdk
  5. Eric Wieber 2015-10-29

    Verified implemented, using: MacOS 10.11.2 (15C27e) Studio 4.4.0.201510280736 Ti SDK 5.1.0.v20151028190028 Appc NPM 4.2.1 Appc CLI 5.1.0-38 Ti CLI 5.0.5 Alloy 1.7.16 Arrow 1.3.13 Xcode 7.2 (7C46l) Node v0.12.7 Java 1.7.0_80 production The use-autolayout property in the tiapp.xml is settable and correctly supplies defines.h with the TI_USEAUTOLAYOUT definition. This tag has been implemented, but the actual splitview feature still requires the launch screen storyboard

JSON Source