Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6867] iOS: UI - TableView searchBar does not have default barColor

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 1.7.5
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSindre Sorhus
AssigneeIngo Muschenetz
Created2011-11-23T07:03:49.000+0000
Updated2014-06-18T22:38:13.000+0000

Description

Problem

The TableView searchBar doesn't have a default barColor in iOS 4.3, although it does in iOS 5.

Test case

Ti.UI.setBackgroundColor('#000');

var tabGroup = Titanium.UI.createTabGroup();

var win = Titanium.UI.createWindow({  
    title: 'title',
    tabBarHidden: true
});

var tab = Titanium.UI.createTab({
    window: win
});
tabGroup.addTab(tab);  
tabGroup.open();

var searchBar = Ti.UI.createSearchBar();

var table = Ti.UI.createTableView({
	search: searchBar
});

win.add(table);

Attachments

FileDateSize
4.3.png2011-11-23T07:03:49.000+0000151454
5.0.png2011-11-23T07:03:49.000+0000151654

Comments

  1. Paul Dowsett 2011-12-26

    Sindre Thank you for raising this ticket. While it is very well formed, the test case could be improved by using a simple window rather than tabs. As each ticket must be limited to a single issue, I have removed the part about the missing barColor property. That said, there is an existing ticket relating to it at TIMOB-2670 I will move this to the main project now. Cheers
  2. Sindre Sorhus 2011-12-26

    Can't really do that, since the problem isn't apparent when using just a window:
       var win = Ti.UI.createWindow();
       win.add(Ti.UI.createTableView({
            search: Ti.UI.createSearchBar()
       }));
       win.open();
       

JSON Source