Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13740] iOS: TableView search result view does not inherit styles

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsios, reprod
ReporterMason Hugus
AssigneeUnknown
Created2013-04-30T21:48:00.000+0000
Updated2018-02-28T20:03:50.000+0000

Description

When adding a SearchBar to a styled TableView, the search functionality fails to inherit the styles of the parent TableView for the results.
// app.js

// Generate some rows of data
var data = [];
for (var i = 0; i < 100; i++) {
	var tableViewRow = Ti.UI.createTableViewRow({
		title: i.toString(),
		backgroundColor: 'red'
	});
	data.push(tableViewRow);
}

// Create a SearchBar
var searchBar = Ti.UI.createSearchBar();

// Create a styled TableView
var tableView = Ti.UI.createTableView({
	data: data,
	search: searchBar,
	backgroundColor: 'blue',
	separatorColor: 'green'
});

// Create a window
var win = Ti.UI.createWindow();
win.add(tableView);
win.open();
As you can see the TableView styles are not being carried forward to the search results view. There seems to be no way to change the search result TableView styles.

Attachments

FileDateSize
1.png2013-04-30T21:48:00.000+0000101044
2.png2013-04-30T21:48:00.000+0000104239

Comments

  1. Daniel Sefton 2013-05-01

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and latest 3.2 CI.
  2. Lee Morris 2017-06-20

    I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 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.8.0_131

JSON Source