Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-4218

iOS: tableView doubletap event does not fire if you set the data with an array of objects

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 1.7.0, Release 1.6.2
    • Fix Version/s: 2013 Sprint 10
    • Component/s: iOS
    • Labels:
    • Environment:

      TiSDK 1.6.2, iOS 4.3
      TiSDK 1.7.0.RC1, iOS 4.3

      Description

      tableView doubletap does not work if you set the data with an array of objects.
      If you create rows and add views to them, then doubletap will work

      Step 1: run the code below
      Step 2: doubletap on 'Row 1' or 'Row 2' and notice that it does not fire
      Step 3: doubletap on 'Row 3' and notice that doubletap fires

      var win = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
       
      var data = [{title:"Row 1"},{title:"Row 2"},row];
       
      var row = Titanium.UI.createTableViewRow({height:45});
      var view = Titanium.UI.createView();
      var label = Ti.UI.createLabel({text:'Row 3', left: 10});
      row.add(view);
      view.add(label);
      data.push(row);
       
      var table = Titanium.UI.createTableView({data:data});
      win.add(table);
      table.addEventListener('click', function(e){
      	Ti.API.info('click');
      });
       
      table.addEventListener('doubletap', function(e){
      	Ti.API.info('doubletap');
      });
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              jithinv@exalture.com jithinpv
              Reporter:
              jalter Jon Alter
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-3630
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration