[TIMOB-10053] iOS: TableViewRow: White background shown momentarily when tapped on view in a tableviewrow
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.1.1, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api, qe-ios070112, reprod |
Reporter | Satyam Sekhri |
Assignee | Unknown |
Created | 2012-07-20T02:08:05.000+0000 |
Updated | 2018-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();
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
[~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/UITableViewCellSelectionStyleI 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