Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10053] iOS: TableViewRow: White background shown momentarily when tapped on view in a tableviewrow

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.1, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi, qe-ios070112, reprod
ReporterSatyam Sekhri
AssigneeUnknown
Created2012-07-20T02:08:05.000+0000
Updated2018-02-28T20:03:27.000+0000

Description

When taped on the view placed inside a tableviewrow, background behind the view is shown for a moment after click event is over. This is not a regression. The issue occurs as far as 1.8.2 Steps to Reproduce: 1. Create an application with code below and launch the app on iOS device 2. Click on the red block which is the first row of tableview Actual: After click over, the background behind the red block (view) is shown for moment, giving it a flickering effect Expected: The background behind the view should not be shown
var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});
var row = Titanium.UI.createTableViewRow();
var view = Titanium.UI.createView({
	backgroundColor : 'red',
	height : 50
});
row.height = 'auto';
row.add(view);

var data = [row];
var table = Titanium.UI.createTableView({
	data : data
});
win.add(table);
win.open();

Comments

  1. Shameer Jan 2013-03-27

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
  2. Eduardo Gomez 2014-03-18

    [~ssekhri], correct me if I'm wrong: Setting the selectionStyle as NONE in the TableViewRow will have no distinct style for when it is selected. {quote} var row = Titanium.UI.createTableViewRow({ selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE }); {quote} Can you please verify if you still get the flickering and it isn't just native behaviour?

    iOS docs

    https://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/c/tdef/UITableViewCellSelectionStyle
  3. Lee Morris 2017-05-24

    I have been able to reproduce this issue with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio 4.9.0.201705021158 Ti SDK 6.1.0.v20170524131825 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.7.0_80

JSON Source