[AC-1191] Ios app crash after search in tableview using searchbar
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Cannot Reproduce |
| Resolution Date | 2015-09-28T16:07:33.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Alloy, Studio |
| Labels | alloy, filter, ios, searchbar, tableview |
| Reporter | abada henno |
| Assignee | Shak Hossain |
| Created | 2014-11-09T10:47:09.000+0000 |
| Updated | 2016-03-08T07:37:34.000+0000 |
Description
When try search using SearchBar in TableView and click on any row result the app will crashes !
Attachments
| File | Date | Size |
|---|---|---|
| example.zip | 2014-11-09T10:47:09.000+0000 | 3571 |
Hello, I have tested this issue, search is working fine in tableview with searchbar, This is not a valid bug.
Environment
CLI 4.1.2 SDK 4.1.0.GA iOS 8.3Code
Hope this helps, Thanks.var win = Titanium.UI.createWindow({ fullscreen : false }); var data = []; data[0] = Ti.UI.createTableViewRow({ title : 'John AppleSeed', id : '100' }); data[1] = Ti.UI.createTableViewRow({ title : 'John', id : '101' }); data[2] = Ti.UI.createTableViewRow({ title : 'Mark', id : '102' }); data[3] = Ti.UI.createTableViewRow({ title : 'Paul', id : '103' }); var search = Titanium.UI.createSearchBar({ showCancel : false, hintText : 'Search Customer' }); search.addEventListener('change', function(e) { e.value; // search string as user types }); search.addEventListener('return', function(e) { search.blur(); }); search.addEventListener('cancel', function(e) { search.blur(); }); // create table view var tableview = Titanium.UI.createTableView({ data : data, search : search }); // add table view to the window win.add(tableview); win.open();