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 container = Ti.UI.createView({backgroundColor: "white", layout: "vertical"}); | |
var layout = [ | |
{ | |
title: "Parent 1", | |
isparent: true, | |
opened: false, | |
sub: [ | |
{ |
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
// add all items to collection | |
Alloy.Collections.Fugitive.reset([{ | |
"name" : "Jeff Haynie" | |
}, { | |
"name" : "Nolan Wright" | |
}, { | |
"name" : "Don Thorp" | |
}, { | |
"name" : "Marshall Culpepper" | |
}, { |
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
// add all items to collection | |
Alloy.Collections.Fugitive.reset([{ | |
"name" : "Jeff Haynie" | |
}, { | |
"name" : "Nolan Wright" | |
}, { | |
"name" : "Don Thorp" | |
}, { | |
"name" : "Marshall Culpepper" | |
}, { |
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
// add all items to collection | |
Alloy.Collections.Fugitive.reset([{ | |
"name" : "Jeff Haynie" | |
}, { | |
"name" : "Nolan Wright" | |
}, { | |
"name" : "Don Thorp" | |
}, { | |
"name" : "Marshall Culpepper" | |
}, { |
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 = Titanium.UI.createWindow({ | |
backgroundColor = '#fff'; | |
}); | |
Ti.include("version.js"); | |
//Ti.Geolocation.preferredProvider = "gps"; | |
if (isIPhone3_2_Plus()) |
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({ | |
backgroundColor: 'white' | |
}); | |
var imgTableLoco = Ti.UI.createTableView({ | |
width: 270, | |
height: 290, | |
top: 0, | |
backgroundColor: 'black' | |
}); |
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
/* | |
Learn the basics of Storekit with this example. | |
Before we can do anything in our app, we need to set up iTunesConnect! This process can be a little painful, but I will | |
guide you through it so you don't have to figure it out on your own. | |
Follow these steps: | |
1) Log in to your Apple Developer account at https://itunesconnect.apple.com/ | |
2) Click "Manage Your Applications". |
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
/** | |
* called when an item in the ListView is clicked; we will get the section | |
* index, and addition event information | |
* | |
* @param {Object} _event | |
*/ | |
function loadMoreBtnClicked(_event) { | |
alert('not implemented yet'); | |
} |
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
//must have TiSocial module installed for iOS: https://github.com/viezel/TiSocial.Framework | |
//share() Android -- uses intent, iOS --- uses TiSocial share dialog | |
//tweet iOS Only -- uses TiSocial tweet dialog | |
function onClickShare(){ | |
require('socialmod').share({ | |
text: 'text to share', | |
title: 'Title', | |
url: 'http://example.com' |
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 v = Ti.UI.createView(); | |
var s = new require('spinner').Spinner( | |
v, // View to spin | |
30 // Degrees to spin per millisecond | |
); // Auto-starts | |
// Stop | |
s.stop(); |
OlderNewer