Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4218] iOS: tableView doubletap event does not fire if you set the data with an array of objects

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-05-09T06:26:01.000+0000
Affected Version/sRelease 1.7.0, Release 1.6.2
Fix Version/s2013 Sprint 10
ComponentsiOS
Labelsrplist
ReporterJon Alter
Assigneejithinpv
Created2011-05-25T10:08:29.000+0000
Updated2017-03-17T18:44:25.000+0000

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();

Comments

  1. jithinpv 2013-05-09

    cannot reproduce Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0
  2. jithinpv 2013-06-20

    Issue does not reproduces Tested with iOS SDK: 5.1 iOS iPhone Simulator: 5.1 Mac OS X Version 10.7.5 Titanium SDK version 3.1.1.v20130606121419 Titanium Studio, build: 3.0.1.201212181159
  3. Lee Morris 2017-03-17

    Closing ticket as the issue cannot be reproduced.

JSON Source