[TIMOB-13036] iOS: Application Error setting data with object at app.js
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-12T23:05:55.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06 |
Components | iOS |
Labels | api, core, ios, qe-testadded, regression |
Reporter | Olga Romero |
Assignee | Vishal Duggal |
Created | 2013-03-12T18:12:26.000+0000 |
Updated | 2014-06-19T12:43:42.000+0000 |
Description
Testing module TableView I ran in to issue that iOS Simulator launches with an application error.(See attached)
It applies to iOS device as well.
Android works fine.
*regression* works in 3.0.2.GA
*Note*:
3.1.0.v20130311190952 - fails
3.1.0.v20130312015656 - fails
3.1.0.v20130311151655 - works
Test steps:
Run the following code:
var win = Titanium.UI.createWindow();
var data = [
{title:'Smoke_Sample', hasChild:true, level:"smoke"}
]
var tableView = Ti.UI.createTableView();
tableView.setData(data);
win.add(tableView);
win.open();
Actual result:
[ERROR] : Script Error {
[ERROR] : backtrace = "#0 () at :0";
[ERROR] : line = 8;
[ERROR] : message = "invalid method 'setData:withObject:'";
[ERROR] : sourceId = 316725760;
[ERROR] : sourceURL = "file://localhost/Users/oromero/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CA47C5F2-C01C-48A5-9E11-06863A18B9A8/getwell.app/app.js";
[ERROR] : }
Expected result:
App should launch with no error
Attachments
File | Date | Size |
---|---|---|
fail.txt | 2013-03-12T18:12:26.000+0000 | 205097 |
iOS Simulator Screen shot Mar 12, 2013 10.31.00 AM.png | 2013-03-12T18:12:26.000+0000 | 32813 |
Fixed by https://github.com/appcelerator/titanium_mobile/pull/3958
Thanks Vishal:) Verified fix with: Titanium Studio, build: 3.0.3.201302201202 Titanium SDK, build: 3.1.0.v20130312145716 ios 6.1 Simulator iPhone5 iOS 6.1.2