Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1615] iOS: Having a search bar and using a table header fails to render the search bar

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2018-11-14T19:49:43.000+0000
Affected Version/sRelease 1.5.0, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
Reporterctredway
AssigneeSrinivasan Pulipakkam
Created2011-04-15T02:57:25.000+0000
Updated2018-11-14T19:49:43.000+0000

Description

on iOS 4, sdk 1.4 on the iphone the following code shows this behavior:
var data = [];

data[0] = Ti.UI.createTableViewRow({hasChild:true,title:'Row 1'});
data[1] = Ti.UI.createTableViewRow({hasDetail:true,title:'Row 2'});
data[2] = Ti.UI.createTableViewRow({hasCheck:true,title:'Row 3'});
data[3] = Ti.UI.createTableViewRow({title:'Row 4'});

var win = Titanium.UI.createWindow({

title:'Tab 1',
backgroundColor:'#fff'

}); var headerView = Ti.UI.createLabel({

text:"Header",
height:35,
backgroundColor:'blue'

}); var search = Titanium.UI.createSearchBar({

barColor:'#385292',
showCancel:false,
hintText:'search'

});

var tableview = Ti.UI.createTableView({

width:win.size.width,
height:win.size.height,
headerView:headerView,
search:search,
filterAttribute:'title',
searchHidden:false,
data:data

});

win.add(tableview);
win.open();

Comments

  1. Wilson Luu 2011-11-03

    Bug is still valid, occurs in: TiMOB sdk version: 1.7.2, 1.8.0.v20111103144656 Studio version: 1.0.7.201111022004 OS version: Mac OS X Lion Devices tested on: iphone 5.0
  2. Stephen Tramer 2012-07-25

    Still valid with SDK 2.2.0.f9e938d.

JSON Source