[TIMOB-1615] iOS: Having a search bar and using a table header fails to render the search bar
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2018-11-14T19:49:43.000+0000 |
Affected Version/s | Release 1.5.0, Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | ctredway |
Assignee | Srinivasan Pulipakkam |
Created | 2011-04-15T02:57:25.000+0000 |
Updated | 2018-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();
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
Still valid with SDK 2.2.0.f9e938d.