NappDrawer: App crashes after setting centerWindow multiple times (iOS)
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
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 18
downgrading to 1.2.4 fixed it, I will stick with that for now