[TIMOB-19151] iOS9: Implement native auto layout to use on iOS9 SplitView- NSLayoutConstraint
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-10-09T02:28:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.1.0 |
Components | iOS |
Labels | n/a |
Reporter | Pedro Enrique |
Assignee | Pedro Enrique |
Created | 2015-07-02T22:49:38.000+0000 |
Updated | 2015-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.
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.
I second that. I am also being flooded with requests around this from users, who are expecting this feature to "just work".
PR: https://github.com/appcelerator/titanium_mobile/pull/7281
PR tested and merged.
Test cases
1. To test this, add the following tag to the ios tag in tiapp.xml2. with this flag enabled, after build, see
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 sdkVerified 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