Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23920] iOS: Ti.UI.Picker not working in Ti.UI.ListView on device

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-09-21T06:18:44.000+0000
Affected Version/sRelease 5.4.0, Release 5.5.0
Fix Version/sRelease 6.0.0
ComponentsiOS
Labelsios, listview, picker, qe-6.0.0
ReporterHans Knöchel
AssigneeHans Knöchel
Created2016-09-18T23:57:47.000+0000
Updated2016-09-22T18:25:49.000+0000

Description

When using a Picker in a ListView template, it does work on the Simulator but fails on the device. It's the same issue as discussed in TIMOB-23616 and only requires a quick fix in the symbols-check.

Comments

  1. Hans Knöchel 2016-09-19

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/8394 PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8395 Demo:
        var win = Titanium.UI.createWindow({
           backgroundColor: '#fff'
       });
       
       
       var templates = {
           "PickerTemplate": {
               properties: {
                   height: 150,
                   backgroundColor: "transparent",
                   selectionStyle: Ti.UI.iPhone.ListViewCellSelectionStyle.NONE
               },
               childTemplates: [{
                   type: 'Ti.UI.Picker',
                   bindId: 'picker'
               }]
           }
       };
       
       var section = Ti.UI.createListSection({
           items: [{
               template: 'PickerTemplate'
           }]
       });
       
       var listView = Ti.UI.createListView({
           templates: templates,
           sections: [section]
       });
       
       
       win.add(listView);
       win.open();
       
  2. Chee Kiat Ng 2016-09-21

    PRs merged.
  3. Harry Bryant 2016-09-22

    Verified as fixed, with the latest 6.0.X build no longer fails on devices. Tested On: iPhone 6 Plus 10.0.1 Device & Simulator iPhone 5S 9.3.5 Device Mac OSX El Capitan 10.11.6 Ti SDK: 6.0.0.v20160921191053 Appc Studio: 4.8.0.201609101003 Appc NPM: 4.2.8-6 App CLI: 6.0.0-45 Xcode 8.0 Node v4.4.7 *Closing ticket.*

JSON Source