{ "id": "62247", "key": "TIMOB-1615", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-11-14T19:49:43.000+0000", "created": "2011-04-15T02:57:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "55846", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "106163", "key": "TIMOB-11994", "fields": { "summary": "iOS: Can't use SearchBar with headerView in TableView", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "spulipakkam", "key": "spulipakkam", "displayName": "Srinivasan Pulipakkam", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-14T19:49:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

on iOS 4, sdk 1.4 on the iphone the following code shows this\r\nbehavior:
\r\nvar data = [];

\r\n

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

\r\n

var win = Titanium.UI.createWindow({

\r\n
\r\ntitle:'Tab 1',\r\nbackgroundColor:'#fff'\r\n
\r\n

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

\r\n
\r\ntext:\"Header\",\r\nheight:35,\r\nbackgroundColor:'blue'\r\n
\r\n

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

\r\n
\r\nbarColor:'#385292',\r\nshowCancel:false,\r\nhintText:'search'\r\n
\r\n

});

\r\n

var tableview = Ti.UI.createTableView({

\r\n
\r\nwidth:win.size.width,\r\nheight:win.size.height,\r\nheaderView:headerView,\r\nsearch:search,\r\nfilterAttribute:'title',\r\nsearchHidden:false,\r\ndata:data\r\n
\r\n

});

\r\n

win.add(tableview);
\r\nwin.open();

{html}", "attachment": [], "flagged": false, "summary": "iOS: Having a search bar and using a table header fails to render the search bar", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "171412", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Bug is still valid, occurs in:\r\nTiMOB sdk version: 1.7.2, 1.8.0.v20111103144656\r\nStudio version: 1.0.7.201111022004\r\nOS version: Mac OS X Lion\r\nDevices tested on: iphone 5.0", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-11-03T15:25:01.000+0000", "updated": "2011-11-03T15:25:01.000+0000" }, { "id": "209451", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still valid with SDK 2.2.0.f9e938d.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T16:30:21.000+0000", "updated": "2012-07-25T16:30:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }