Skip to content

Instantly share code, notes, and snippets.

@onebook0505
Forked from kevinbubu/Hello JSDC 2
Created March 5, 2014 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onebook0505/9363302 to your computer and use it in GitHub Desktop.
Save onebook0505/9363302 to your computer and use it in GitHub Desktop.
var win = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var image = Ti.UI.createImageView({
image:'KS_nav_ui.png',
width:46,
heigth:43,
top:20,
left:20
});
win.add(image);
var label = Ti.UI.createLabel({
text:'Hello World!',
width:100,
height:44,
top:100
});
win.add(label);
var button = Ti.UI.createButton({
title:'button',
width:100,
height:44,
top:180
});
win.add(button);
button.addEventListener('click', function(){
label.text = 'Hello JSDC!';
label.setColor('RED');
});
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment