Created
March 12, 2010 13:09
-
-
Save ranguard/330280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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