[TIMOB-13740] iOS: TableView search result view does not inherit styles
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 3.1.0 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | ios, reprod |
| Reporter | Mason Hugus |
| Assignee | Unknown |
| Created | 2013-04-30T21:48:00.000+0000 |
| Updated | 2018-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
| File | Date | Size |
|---|---|---|
| 1.png | 2013-04-30T21:48:00.000+0000 | 101044 |
| 2.png | 2013-04-30T21:48:00.000+0000 | 104239 |
Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and latest 3.2 CI.
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