{ "id": "106163", "key": "TIMOB-11994", "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": null, "resolutiondate": null, "created": "2012-12-07T18:36:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "reprod" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "55846", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "62247", "key": "TIMOB-1615", "fields": { "summary": "iOS: Having a search bar and using a table header fails to render the search bar", "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" } }, "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": null, "updated": "2018-02-28T20:04:09.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. problem\r\n\r\nIn a Ti.UI.TableView on iOS, you cannot use the *search* property's Ti.UI.SearchBar if you have also specified as *headerView*. You won't encounter any errors, you will just not get the SearchBar in your app. You will only see the headerView.\r\n\r\nIf this is the expected behavior, I did not see it documented with respect to the Ti.UI.SearchBar in the API docs.\r\n\r\nh2. expected behavior\r\n\r\nThe SearchBar would be anchored at the top of the table with the headerView under it.\r\n\r\nh2. test case\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff'\r\n});\r\n\r\nvar data = [];\r\nfor (var i = 0; i < 25; i++) {\r\n\tdata.push({title:'row '+(i+1)});\t\r\n}\r\nvar table = Ti.UI.createTableView({\r\n\tsearch: Ti.UI.createSearchBar(),\r\n\theaderView: Ti.UI.createView({\r\n\t\tbackgroundColor: '#a00',\r\n\t\theight: 50\r\n\t}),\r\n\tdata: data\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "43654", "filename": "Screen Shot 2013-11-04 at 10.06.00 AM.png", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T15:07:38.000+0000", "size": 39250, "mimeType": "image/png" }, { "id": "43655", "filename": "Screen Shot 2013-11-04 at 10.06.08 AM.png", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T15:07:38.000+0000", "size": 41340, "mimeType": "image/png" }, { "id": "48126", "filename": "TestTableViewHeader.tar.gz", "author": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-15T13:50:03.000+0000", "size": 5122649, "mimeType": "application/x-gzip" } ], "flagged": false, "summary": "iOS: Can't use SearchBar with headerView in TableView", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.0.0\r\niOS 6\r\nTiStudio 3.0.1.x", "comment": { "comments": [ { "id": "243661", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\niOS iPhone Simulator: iOS SDK version: 6.0\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-22T10:11:48.000+0000", "updated": "2013-03-22T10:11:48.000+0000" }, { "id": "277953", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For reference, I've attached 2 screenshots. One shows the ListView behaving as expected. The other shows an equivalent TableView not showing the SearchBar, despite having specified it along with the headerView.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-04T15:07:38.000+0000", "updated": "2013-11-04T15:07:38.000+0000" }, { "id": "422245", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170609091155\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-19T17:10:33.000+0000", "updated": "2017-06-19T17:10:33.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }