Skip to content

Instantly share code, notes, and snippets.

@ranguard
Created March 12, 2010 13:09
Show Gist options
  • Save ranguard/330280 to your computer and use it in GitHub Desktop.
Save ranguard/330280 to your computer and use it in GitHub Desktop.
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var view = Titanium.UI.createView();
var button = Titanium.UI.createButton({
title: 'Crash App (trying to remove view)'
});
button.addEventListener('click', function(e) {
win1.remove(view);
});
view.add(button);
win1.add(view);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment