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
Ti.UI.backgroundColor = '#fff'; | |
var win = Ti.UI.createWindow(); | |
var label = Ti.UI.createLabel({ | |
text:"I'll bet you just clicked on a link to http://www.appcelerator.com", | |
color:'#000', | |
font: { | |
fontSize:32 | |
}, | |
width:'80%' |
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
(function() { | |
Titanium.Facebook.appid = "134793934930"; | |
Titanium.Facebook.permissions = ['publish_stream', 'read_stream', 'user_photos', 'friends_photos']; | |
Titanium.Facebook.addEventListener('login', function(e) { | |
if(e.success) { | |
getAlbumCovers(); | |
return; | |
} else if(e.error || e.cancelled) { |
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 win = Ti.UI.createWindow(); | |
var tableview = Ti.UI.createTableView(); | |
var section = Titanium.UI.createTableViewSection(); | |
section.headerTitle = "Hello"; | |
var row1 = Titanium.UI.createTableViewRow({title:"Hello 1"}); | |
var row2 = Titanium.UI.createTableViewRow({title:"Hello 2"}); | |
section.add(row1); | |
section.add(row2); | |
tableview.setData([section]); | |
win.add(tableview); |
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
Titanium.Facebook.appid = "134793934930"; | |
Titanium.Facebook.permissions = [ | |
'publish_stream', | |
'read_stream', | |
'user_photos', | |
'friends_photos' | |
]; |
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
(function() { | |
var mainWindow, tableview; | |
function setupWindow() { | |
mainWindow = Titanium.UI.createWindow({ | |
title : 'Tab 1', | |
backgroundColor : '#fff' | |
}); |
NewerOlder