Skip to content

App crashes after setting centerWindow multiple times (iOS) #213

@arifje

Description

@arifje

I can't explain why the example is working, but when I set new center windows the app crashes without any messages in the console. It just stops.

Add some timeouts after the main window has opened;

drawer.open();

setTimeout(function() {
	
	var w = Ti.UI.createWindow({
		backgroundColor: 'red'
	});
	drawer.setCenterWindow(w);
},7000);

setTimeout(function() {
	
	var w = Ti.UI.createWindow({
		backgroundColor: 'green'
	});
	drawer.setCenterWindow(w);
},9000);

setTimeout(function() {
	
	var w = Ti.UI.createWindow({
		backgroundColor: 'blue'
	});
	drawer.setCenterWindow(w);
},11000);

setTimeout(function() {
	
	var w = Ti.UI.createWindow({
		backgroundColor: 'orange'
	});
	drawer.setCenterWindow(w);
},13000);

This will crash the app after the second window (green) has been set.

Running SDK 7.0.1.GA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions