[TIMOB-11071] iOS: TabGroup - If a tabgroup is created and opened within a window, app crashes.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-09-25T18:36:02.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | Sprint 2012-20 Core, 2012 Sprint 20 |
Components | iOS |
Labels | core, qe-ios090112, regression |
Reporter | Anshu Mittal |
Assignee | Ingo Muschenetz |
Created | 2012-09-24T09:12:05.000+0000 |
Updated | 2013-03-13T18:55:17.000+0000 |
Description
If a tabgroup is created and opened within a window, app crashes.
This is regression since the issue does not occur in 2.1.3.v20120920154617.
Steps to reproduce:
1. Create an app using the code below.
2. Launch the app.
Actual:
App crashes and gets closed. See logs.
Expected:
Application should open normally.
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
function createCustomTab(id){
var tab = Ti.UI.createTab({
});
return tab;
}
var tabs = Ti.UI.createTabGroup();
tabs.addTab(createCustomTab(1));
tabs.addTab(createCustomTab(2));
tabs.open();
win1.add(tabs);
win1.open();
Attachments
File | Date | Size |
---|---|---|
tabcrash.crash | 2012-09-24T09:12:05.000+0000 | 96994 |
Tabgroups are top level containers and are not supposed to be added to anything. Secondly the code is calling tabs.open and win.open which is what is causing the crash.
Closing as invalid