Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created April 29, 2012 21:36
Show Gist options
  • Save hvgotcodes/2553376 to your computer and use it in GitHub Desktop.
Save hvgotcodes/2553376 to your computer and use it in GitHub Desktop.
class hsc.ui.SplashView
constructor () ->
tabGroup = Ti.UI.createTabGroup()
win1 = Ti.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
})
@hvgotcodes
Copy link
Author

class hsc.ui.SplashView
constructor: ->
@tabgroup = Ti.UI.createTabGroup()
win1 = Ti.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
})

label1 = Titanium.UI.createLabel({
  color:'#999',
  text:'Poop 1',
  font:{fontSize:20,fontFamily:'Helvetica Neue'},
  textAlign:'center',
  width:'auto'
});
win1.add(label1);

@tabGroup.add win1

open: ->
@tabGroup.open()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment